mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
one more test
This commit is contained in:
parent
219c36054f
commit
debd5f9fed
11 changed files with 92 additions and 26 deletions
|
@ -183,8 +183,8 @@ GitEngine.prototype.printAndCopyTree = function() {
|
|||
};
|
||||
|
||||
GitEngine.prototype.loadTree = function(tree) {
|
||||
// deep copy in case we use it a bunch
|
||||
tree = $.extend(true, {}, tree);
|
||||
// deep copy in case we use it a bunch. lol awesome copy method
|
||||
tree = JSON.parse(JSON.stringify(tree));
|
||||
|
||||
// first clear everything
|
||||
this.removeAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue