This commit is contained in:
Peter Cottle 2012-09-17 13:25:59 -07:00
parent a229bc2f41
commit b566ebf6f6
6 changed files with 10 additions and 8 deletions

View file

@ -12,7 +12,7 @@ var Command = Backbone.Model.extend({
},
validateAtInit: function() {
if (!this.get('rawStr')) {
if (this.get('rawStr') === null) {
throw new Error('Give me a string!');
}
if (!this.get('createTime')) {

View file

@ -70,10 +70,7 @@ var CommandPromptView = Backbone.View.extend({
_.each(value.split(';'), _.bind(function(command) {
command = command.replace(/^(\s+)/, '');
command = command.replace(/(\s+)$/, '');
console.log('the command is', command);
if (command.length) {
this.addToCollection(command);
}
}, this));
},

View file

@ -42,7 +42,10 @@ GitEngine.prototype.init = function() {
this.commit();
// update tree
// TODO make async, not async
setTimeout(function() {
events.trigger('treeRefresh');
}, 100);
};
GitEngine.prototype.getDetachedHead = function() {

View file

@ -37,8 +37,8 @@
Learn Git Branching
</div>
</div>
<div id="terminal" class="box flex1 vertical">
<div id="commandDisplay">
<div id="terminal" class="box flex1 horizontal">
<div id="commandDisplay" class="box vertical flex1">
</div>
</div>
</div>

View file

@ -247,5 +247,6 @@ p.commandLine span.prompt {
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3) inset;
border: 1px solid #6287A4;
border-radius: 0 0 5px 5px;
-webkit-box-align: start;
}

View file

@ -129,6 +129,7 @@ var VisEdge = Backbone.Model.extend({
genGraphics: function(paper) {
var pathString = this.getBezierCurve();
var path = cutePath(paper, pathString);
path.toBack();
this.set('path', path);
},