mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-21 03:05:31 +02:00
got rid of every underscore bind i think -- 1500 line diff
This commit is contained in:
parent
3833319476
commit
2257668f9d
21 changed files with 229 additions and 230 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue