mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
Undo button functionality Issue #40
This commit is contained in:
parent
e94710ca64
commit
c5a3f866ab
9 changed files with 144 additions and 12 deletions
|
@ -131,10 +131,11 @@ var Visualization = Backbone.View.extend({
|
|||
this.treeString = treeString;
|
||||
},
|
||||
|
||||
reset: function() {
|
||||
reset: function(tree) {
|
||||
var treeString = tree || this.treeString;
|
||||
this.setTreeOpacity(0);
|
||||
if (this.treeString) {
|
||||
this.gitEngine.loadTreeFromString(this.treeString);
|
||||
this.gitEngine.loadTreeFromString(treeString);
|
||||
} else {
|
||||
this.gitEngine.defaultInit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue