mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
tag loading from trees now works
This commit is contained in:
parent
5a66b762ce
commit
7bbc81de97
2 changed files with 22 additions and 10 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue