got rid of every underscore bind i think -- 1500 line diff

This commit is contained in:
Peter Cottle 2015-04-20 16:41:56 +10:00
parent 3833319476
commit 2257668f9d
21 changed files with 229 additions and 230 deletions

View file

@ -55,9 +55,9 @@ var CommandBuffer = Backbone.Model.extend({
setTimeout: function() {
this.timeout = setTimeout(_.bind(function() {
this.timeout = setTimeout(function() {
this.sipFromBuffer();
}, this), TIME.betweenCommandsDelay);
}.bind(this), TIME.betweenCommandsDelay);
},
popAndProcess: function() {
@ -79,9 +79,9 @@ var CommandBuffer = Backbone.Model.extend({
command.set('status', 'processing');
var deferred = Q.defer();
deferred.promise.then(_.bind(function() {
deferred.promise.then(function() {
this.setTimeout();
}, this));
}.bind(this));
var eventName = command.get('eventName');
if (!eventName) {