aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/js/services.js
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2012-04-18 15:18:35 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2012-04-18 15:18:35 -0400
commit1cb203c4e3d2114fca928729f049b259d4b05a66 (patch)
treeebdb2a6bcc8d1809cdd0dc2d84893a94648654c6 /alias-angular/app/js/services.js
parente61de2b221181abacdc162cdb46c0f79eee70ca0 (diff)
downloadalias-1cb203c4e3d2114fca928729f049b259d4b05a66.tar.gz
Small restructuring and cleanup
- the $rootScope object contains an is_connected() method and a username value, which all the other controllers have access to. - added a get_contacts() method so that we don't need to write a custom filter. - now sort by status as well
Diffstat (limited to 'alias-angular/app/js/services.js')
-rw-r--r--alias-angular/app/js/services.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias-angular/app/js/services.js b/alias-angular/app/js/services.js
index 9cfeb81..906fe18 100644
--- a/alias-angular/app/js/services.js
+++ b/alias-angular/app/js/services.js
@@ -14,7 +14,7 @@ angular.module('Alias.services', [], function($provide) {
});
},
addHandler: function(callback, name) {
- connection.addHandler(function(stanza){
+ connection.addHandler(function (stanza) {
$rootScope.$apply(callback(stanza));
return true;
}, null, name, null, null, null, null);