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 // processed. if it's not, we immediately process the first item
// and then set the timeout. // and then set the timeout.
if (this.timeout) { if (this.timeout) {
console.log('timeout exists abort');
// timeout existence implies its being processed // timeout existence implies its being processed
return; return;
} }
console.log(this.timeout);
console.log('setting timeout');
this.setTimeout(); this.setTimeout();
}, },
@ -74,9 +77,6 @@ var CommandBuffer = Backbone.Model.extend({
} }
this.popAndProcess(); this.popAndProcess();
if (!this.buffer.length) {
this.clear();
}
}, },
}); });

View file

@ -45,7 +45,7 @@
<!-- Templates --> <!-- Templates -->
<script type="text/html" id="command-template"> <script type="text/html" id="command-template">
<p class="commandLine transitionBackground <%= status %>"> <p class="commandLine transitionBackground <%= status %>">
<span class="arrows">&gt; &gt; &gt;</span> <span class="arrows">$</span>
<%= rawStr %> <%= rawStr %>
<span class="icons transitionOpacity"> <span class="icons transitionOpacity">
<i class="icon-exclamation-sign"></i> <i class="icon-exclamation-sign"></i>

View file

@ -10,7 +10,6 @@ html, body {
-webkit-perspective:600px; -webkit-perspective:600px;
font-family: Monaco, Courier, font-monospace; font-family: Monaco, Courier, font-monospace;
font-size: 1.4em;
color: #eee; color: #eee;
} }
@ -46,7 +45,7 @@ html, body {
p.commandLine, p.commandLineResult { p.commandLine, p.commandLineResult {
opacity: 1; opacity: 1;
font-size: 18px; font-size: 16px;
margin: 2px; margin: 2px;
background-color: black; background-color: black;
} }