diff --git a/src/js/graph/treeCompare.js b/src/js/graph/treeCompare.js index 9b37bc60..ad3324f4 100644 --- a/src/js/graph/treeCompare.js +++ b/src/js/graph/treeCompare.js @@ -98,11 +98,9 @@ TreeCompare.compareAllBranchesWithinTrees = function(treeA, treeB) { treeB.branches ); - var result = true; - _.uniq(allBranches, function(info, branch) { - result = result && this.compareBranchWithinTrees(treeA, treeB, branch); - }, this); - return result; + return Object.keys(allBranches).every(function(branch) { + return this.compareBranchWithinTrees(treeA, treeB, branch); + }.bind(this)); }; TreeCompare.compareAllTagsWithinTrees = function(treeA, treeB) {