optimized CSS a bit

This commit is contained in:
Peter Cottle 2013-01-05 12:35:37 -08:00
parent 19b6038f55
commit d5f456fa0c
10 changed files with 615 additions and 489 deletions

View file

@ -5,6 +5,23 @@ function TreeCompare() {
}
TreeCompare.prototype.compareAllBranchesWithinTrees = function(treeA, treeB) {
treeA = this.convertTreeSafe(treeA);
treeB = this.convertTreeSafe(treeB);
var allBranches = _.extend(
{},
treeA.branches,
treeB.branches
);
var result = true;
_.uniq(allBranches, function(info, branch) {
result = result && this.compareBranchWithinTrees(treeA, treeB, branch);
}, this);
return result;
};
TreeCompare.prototype.compareBranchesWithinTrees = function(treeA, treeB, branches) {
var result = true;
_.each(branches, function(branchName) {