aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/js/services.js
diff options
context:
space:
mode:
authorZaran <zaran.krleza@gmail.com>2012-05-05 17:16:04 -0700
committerZaran <zaran.krleza@gmail.com>2012-05-05 17:16:04 -0700
commit3f0e6c2b8065473491349f47600ed41c31614e74 (patch)
treeda41569547d35427ddb5647d3375e98f446ef2ec /alias-angular/app/js/services.js
parentb496488568fd5a00e36f5d3b7b4f9a0db6ac204b (diff)
downloadalias-3f0e6c2b8065473491349f47600ed41c31614e74.tar.gz
Basic message receive/send feature
Note: the tab directive is not needed anymore because the ngClick directive already calls preventDefault()
Diffstat (limited to 'alias-angular/app/js/services.js')
-rw-r--r--alias-angular/app/js/services.js4
1 files changed, 2 insertions, 2 deletions
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));