one more test

This commit is contained in:
Peter Cottle 2013-07-24 09:57:21 -07:00
parent 219c36054f
commit debd5f9fed
11 changed files with 92 additions and 26 deletions

View file

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