Fixes Issue #19 thanks a ton epheph

This commit is contained in:
Peter Cottle 2013-02-17 16:52:21 -08:00
parent 598e322524
commit be2fa68a45
6 changed files with 12 additions and 3 deletions

View file

@ -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);