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

@ -14099,6 +14099,8 @@ var GitDemonstrationView = ContainedBase.extend({
if (!this.options.beforeCommand) { if (!this.options.beforeCommand) {
return; return;
} }
console.log('doing before command');
// here we just split the command and push them through to the git engine // here we just split the command and push them through to the git engine
util.splitTextCommand(this.options.beforeCommand, function(commandStr) { util.splitTextCommand(this.options.beforeCommand, function(commandStr) {
this.mainVis.gitEngine.dispatch(new Command({ this.mainVis.gitEngine.dispatch(new Command({
@ -14126,6 +14128,7 @@ var GitDemonstrationView = ContainedBase.extend({
reset: function() { reset: function() {
this.mainVis.reset(); this.mainVis.reset();
this.dispatchBeforeCommand();
this.demonstrated = false; this.demonstrated = false;
this.$el.toggleClass('demonstrated', false); this.$el.toggleClass('demonstrated', false);
this.$el.toggleClass('demonstrating', false); this.$el.toggleClass('demonstrating', false);
@ -24338,6 +24341,8 @@ var GitDemonstrationView = ContainedBase.extend({
if (!this.options.beforeCommand) { if (!this.options.beforeCommand) {
return; return;
} }
console.log('doing before command');
// here we just split the command and push them through to the git engine // here we just split the command and push them through to the git engine
util.splitTextCommand(this.options.beforeCommand, function(commandStr) { util.splitTextCommand(this.options.beforeCommand, function(commandStr) {
this.mainVis.gitEngine.dispatch(new Command({ this.mainVis.gitEngine.dispatch(new Command({
@ -24365,6 +24370,7 @@ var GitDemonstrationView = ContainedBase.extend({
reset: function() { reset: function() {
this.mainVis.reset(); this.mainVis.reset();
this.dispatchBeforeCommand();
this.demonstrated = false; this.demonstrated = false;
this.$el.toggleClass('demonstrated', false); this.$el.toggleClass('demonstrated', false);
this.$el.toggleClass('demonstrating', false); this.$el.toggleClass('demonstrating', false);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
build/bundle.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -409,7 +409,7 @@
For a much easier time perusing the source, see the individual files at: For a much easier time perusing the source, see the individual files at:
https://github.com/pcottle/learnGitBranching https://github.com/pcottle/learnGitBranching
--> -->
<script src="build/bundle.min.15ba1bf9.js"></script> <script src="build/bundle.min.0854649e.js"></script>
<!-- The advantage of github pages: super-easy, simple, slick static hostic. <!-- The advantage of github pages: super-easy, simple, slick static hostic.
The downside? No raw logs to parse for analytics, so I have to include The downside? No raw logs to parse for analytics, so I have to include

View file

@ -94,6 +94,8 @@ var GitDemonstrationView = ContainedBase.extend({
if (!this.options.beforeCommand) { if (!this.options.beforeCommand) {
return; return;
} }
console.log('doing before command');
// here we just split the command and push them through to the git engine // here we just split the command and push them through to the git engine
util.splitTextCommand(this.options.beforeCommand, function(commandStr) { util.splitTextCommand(this.options.beforeCommand, function(commandStr) {
this.mainVis.gitEngine.dispatch(new Command({ this.mainVis.gitEngine.dispatch(new Command({
@ -121,6 +123,7 @@ var GitDemonstrationView = ContainedBase.extend({
reset: function() { reset: function() {
this.mainVis.reset(); this.mainVis.reset();
this.dispatchBeforeCommand();
this.demonstrated = false; this.demonstrated = false;
this.$el.toggleClass('demonstrated', false); this.$el.toggleClass('demonstrated', false);
this.$el.toggleClass('demonstrating', false); this.$el.toggleClass('demonstrating', false);