mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-17 17:23:41 +02:00
fixed bug on command buffer
This commit is contained in:
parent
27af3df489
commit
8ebb53b983
3 changed files with 5 additions and 6 deletions
|
@ -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();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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">> > ></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>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue