tag loading from trees now works

This commit is contained in:
Peter Cottle 2013-10-29 09:57:46 -07:00
parent 5a66b762ce
commit 7bbc81de97
2 changed files with 22 additions and 10 deletions

View file

@ -1,6 +1,12 @@
var _ = require('underscore');
var Graph = {
descendSortDepth: function(objects) {
return objects.sort(function(oA, oB) {
return oB.depth - oA.depth;
});
},
getUniqueObjects: function(objects) {
var unique = {};
var result = [];