aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/js/controllers.js
diff options
context:
space:
mode:
Diffstat (limited to 'alias-angular/app/js/controllers.js')
-rw-r--r--alias-angular/app/js/controllers.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/alias-angular/app/js/controllers.js b/alias-angular/app/js/controllers.js
index 2040e3a..d487fdf 100644
--- a/alias-angular/app/js/controllers.js
+++ b/alias-angular/app/js/controllers.js
@@ -32,13 +32,12 @@ function RosterCtl($scope, StropheSrv, $log) {
Strophe.forEachChild(query, 'item', function(item){
var jid = item.getAttribute('jid');
var name = item.getAttribute('name');
- $scope.contacts[jid]={name: name};
+ $scope.contacts[jid] = {name: name};
});
};
function onPresence(presence) {
var who = $(presence).attr('from');
var jid = Strophe.getBareJidFromJid(who);
- $log.log(jid);
var type = $(presence).attr('type');
if (type !== 'error') {
if (type === 'unavailable') {
@@ -58,7 +57,6 @@ function RosterCtl($scope, StropheSrv, $log) {
}
$scope.$on('connected', function() {
StropheSrv.addHandler(onPresence, 'presence');
- $log.log('test');
$scope.getRoster();
StropheSrv.send($pres());
});