Fixed deleted user num

This commit is contained in:
Igor Zhukov 2014-11-11 19:08:55 +03:00
parent b0d62c9b2c
commit c1fbd7ca13
2 changed files with 1 additions and 2 deletions

View File

@ -217,7 +217,6 @@ angular.module('myApp.directives', ['myApp.filters'])
.appendTo('body')
.on('load', function () {
twttr.events.bind('loaded', function (event) {
console.log('loaded');
for (var i = 0; i < twitterPendingWidgets.length; i++) {
twitterPendingWidgets[i].$emit('ui_height');
}

View File

@ -115,7 +115,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (angular.isObject(id)) {
return id;
}
return users[id] || {id: id, deleted: true};
return users[id] || {id: id, deleted: true, num: 1};
}
function hasUser(id) {