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

@ -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.addToCollection(command);
}, this));
},