From 3f0e6c2b8065473491349f47600ed41c31614e74 Mon Sep 17 00:00:00 2001 From: Zaran Date: Sat, 5 May 2012 17:16:04 -0700 Subject: Basic message receive/send feature Note: the tab directive is not needed anymore because the ngClick directive already calls preventDefault() --- alias-angular/app/js/services.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 906fe18..5a3d207 100644 --- a/alias-angular/app/js/services.js +++ b/alias-angular/app/js/services.js @@ -13,11 +13,11 @@ angular.module('Alias.services', [], function($provide) { $rootScope.$apply(callback(data)); }); }, - addHandler: function(callback, name) { + addHandler: function(callback, name, type) { connection.addHandler(function (stanza) { $rootScope.$apply(callback(stanza)); return true; - }, null, name, null, null, null, null); + }, null, name, type, null, null, null); }, send: function(stanza) { $rootScope.$apply(connection.send(stanza)); -- cgit v1.2.3-70-g09d2