mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 23:48:34 +02:00
Fixes Issue #19 thanks a ton epheph
This commit is contained in:
parent
598e322524
commit
be2fa68a45
6 changed files with 12 additions and 3 deletions
|
@ -94,6 +94,8 @@ var GitDemonstrationView = ContainedBase.extend({
|
|||
if (!this.options.beforeCommand) {
|
||||
return;
|
||||
}
|
||||
console.log('doing before command');
|
||||
|
||||
// here we just split the command and push them through to the git engine
|
||||
util.splitTextCommand(this.options.beforeCommand, function(commandStr) {
|
||||
this.mainVis.gitEngine.dispatch(new Command({
|
||||
|
@ -121,6 +123,7 @@ var GitDemonstrationView = ContainedBase.extend({
|
|||
|
||||
reset: function() {
|
||||
this.mainVis.reset();
|
||||
this.dispatchBeforeCommand();
|
||||
this.demonstrated = false;
|
||||
this.$el.toggleClass('demonstrated', false);
|
||||
this.$el.toggleClass('demonstrating', false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue