From 8ebb53b983ae543c0edfcf0cf329b923821caabb Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Sat, 15 Sep 2012 22:50:54 -0700 Subject: [PATCH] fixed bug on command buffer --- src/collections.js | 6 +++--- src/index.html | 2 +- src/style/main.css | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) 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 @@