From 1cb203c4e3d2114fca928729f049b259d4b05a66 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 18 Apr 2012 15:18:35 -0400 Subject: 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 --- alias-angular/app/js/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alias-angular/app/js/services.js') 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); -- cgit v1.2.3-70-g09d2