Replace stray references to ext.js functions

Esse commit está contido em:
Joshua Gross
2010-09-24 19:54:45 -05:00
commit e90343e072
2 arquivos alterados com 5 adições e 4 exclusões
+2 -2
Ver Arquivo
@@ -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) {
+3 -2
Ver Arquivo
@@ -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) {