From d46728d9739f13a5e8ee68841e2360b8b295425b Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Thu, 27 Dec 2012 14:58:25 -0800 Subject: [PATCH] now to move to everything being able to async process comamdns event-based distribution --- build/bundle.js | 4 ++-- src/js/models/collections.js | 2 +- todo.txt | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build/bundle.js b/build/bundle.js index 279a6bf6..27584d52 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -4578,7 +4578,7 @@ var CommandBuffer = Backbone.Model.extend({ this.setTimeout(); }, this); - // find a command with no error + // find a command with no error (aka unprocessed) while (popped.get('error') && this.buffer.length) { popped = this.buffer.pop(); } @@ -16595,7 +16595,7 @@ var CommandBuffer = Backbone.Model.extend({ this.setTimeout(); }, this); - // find a command with no error + // find a command with no error (aka unprocessed) while (popped.get('error') && this.buffer.length) { popped = this.buffer.pop(); } diff --git a/src/js/models/collections.js b/src/js/models/collections.js index 7eda523b..12fb3ba6 100644 --- a/src/js/models/collections.js +++ b/src/js/models/collections.js @@ -68,7 +68,7 @@ var CommandBuffer = Backbone.Model.extend({ this.setTimeout(); }, this); - // find a command with no error + // find a command with no error (aka unprocessed) while (popped.get('error') && this.buffer.length) { popped = this.buffer.pop(); } diff --git a/todo.txt b/todo.txt index a0ff3a0a..4e7f0bc0 100644 --- a/todo.txt +++ b/todo.txt @@ -10,12 +10,9 @@ Medium things: Commands ======== +[ ] multiple things can process!!! [ ] sip from buffer with post-command hooks. ideally the git engine knows nothing about the level being played -[ ] refactor 'processCommand' -[ ] text input from the commandPromptView must flow down into - filters. no hacky stuff anymore where it's part of the option parser, - wtf Small things to implement: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -35,6 +32,9 @@ Big Bugs to fix: Done things: (I only started this on Dec 17th 2012 to get a better sense of what was done) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +[x] text input from the commandPromptView must flow down into + filters. no hacky stuff anymore where it's part of the option parser, + wtf [x] ok fuckit here is the deal. Command model has minimal logic -- it calls to a parse waterfall that expands any shortcuts needed, handles any instant commands, and then finally will handle the dispatching. I think this will be