mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-16 17:44:28 +02:00
fixed bug on command buffer
This commit is contained in:
parent
27af3df489
commit
8ebb53b983
3 changed files with 5 additions and 6 deletions
|
@ -33,9 +33,12 @@ var CommandBuffer = Backbone.Model.extend({
|
|||
// processed. if it's not, we immediately process the first item
|
||||
// and then set the timeout.
|
||||
if (this.timeout) {
|
||||
console.log('timeout exists abort');
|
||||
// timeout existence implies its being processed
|
||||
return;
|
||||
}
|
||||
console.log(this.timeout);
|
||||
console.log('setting timeout');
|
||||
this.setTimeout();
|
||||
},
|
||||
|
||||
|
@ -74,9 +77,6 @@ var CommandBuffer = Backbone.Model.extend({
|
|||
}
|
||||
|
||||
this.popAndProcess();
|
||||
if (!this.buffer.length) {
|
||||
this.clear();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue