Replace stray references to ext.js functions
Esse commit está contido em:
@@ -18,14 +18,14 @@ var Hub = module.exports = function Hub(options) {
|
||||
}, this.reapInterval, this);
|
||||
}
|
||||
|
||||
this.events.addListener('update', (function(package) {
|
||||
this.events.addListener('update', o_.bind(function(package) {
|
||||
if(package.constructor === exports.Offline) {
|
||||
for(var i = 0, l = this.users.length; i < l; i++) {
|
||||
if(this.users[i].get('username') == package.user)
|
||||
this.users.splice(i, 1);
|
||||
}
|
||||
}
|
||||
}).bind(this));
|
||||
}, this));
|
||||
};
|
||||
|
||||
Hub.prototype.destroy = function(sid, fn) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
var events = require('events'),
|
||||
packages = require('../../libs/packages');
|
||||
packages = require('../../libs/packages'),
|
||||
o_ = require('../../libs/utils');
|
||||
|
||||
var User = module.exports = function(id, data) {
|
||||
this.id = id;
|
||||
@@ -12,7 +13,7 @@ var User = module.exports = function(id, data) {
|
||||
this.events = new events.EventEmitter();
|
||||
this.status = packages.STATUSES[0];
|
||||
|
||||
setInterval(this._expireConns.bind(this), 500);
|
||||
setInterval(o_.bind(this._expireConns, this), 500);
|
||||
};
|
||||
|
||||
User.prototype.receivedUpdate = function(package) {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário