diff --git a/src/collections.js b/src/collections.js index d8448664..a38d4b27 100644 --- a/src/collections.js +++ b/src/collections.js @@ -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(); - } }, }); diff --git a/src/index.html b/src/index.html index cc2890c8..f219d713 100644 --- a/src/index.html +++ b/src/index.html @@ -45,7 +45,7 @@