mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08: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
|
@ -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);
|
||||||
|
|
1
build/bundle.min.0854649e.js
Normal file
1
build/bundle.min.0854649e.js
Normal file
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
2
build/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue