mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +02:00
NICE have rebase working and some legit refactoring. git is gettingt here
This commit is contained in:
parent
46c583f93d
commit
acd04d6d00
3 changed files with 107 additions and 26 deletions
11
src/views.js
11
src/views.js
|
@ -76,13 +76,20 @@ var CommandLineView = Backbone.View.extend({
|
|||
var value = this.$('#commandTextField').val().replace('\n', '');
|
||||
this.clear();
|
||||
|
||||
// if we are entering a real command, add it to our history
|
||||
if (value.length) {
|
||||
this.commands.unshift(value);
|
||||
}
|
||||
this.index = -1;
|
||||
|
||||
events.trigger('commandSubmitted', value);
|
||||
events.trigger('commandReadyForProcess', value);
|
||||
_.each(value.split(';'), function(command) {
|
||||
command = command.replace(/^(\s+)/, '');
|
||||
command = command.replace(/(\s+)$/, '');
|
||||
if (command.length) {
|
||||
events.trigger('commandSubmitted', command);
|
||||
events.trigger('commandReadyForProcess', command);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
parseOrCatch: function(value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue