fixed bug on command buffer

This commit is contained in:
Peter Cottle 2012-09-15 22:50:54 -07:00
parent 27af3df489
commit 8ebb53b983
3 changed files with 5 additions and 6 deletions

View file

@ -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();
}
},
});