mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 08:34:26 +02:00
tried to port one more, broke on events instantiation
This commit is contained in:
parent
8d2803e4e4
commit
6327566a63
6 changed files with 2055 additions and 32 deletions
14
src/tree.js
14
src/tree.js
|
@ -1,3 +1,9 @@
|
|||
var randomHueString = function() {
|
||||
var hue = Math.random();
|
||||
var str = 'hsb(' + String(hue) + ',0.7,1)';
|
||||
return str;
|
||||
};
|
||||
|
||||
var VisBase = Backbone.Model.extend({
|
||||
removeKeys: function(keys) {
|
||||
_.each(keys, function(key) {
|
||||
|
@ -949,3 +955,11 @@ var VisEdgeCollection = Backbone.Collection.extend({
|
|||
var VisBranchCollection = Backbone.Collection.extend({
|
||||
model: VisBranch
|
||||
});
|
||||
|
||||
exports.VisEdgeCollection = VisEdgeCollection;
|
||||
exports.VisBranchCollection = VisBranchCollection;
|
||||
exports.VisNode = VisNode;
|
||||
exports.VisEdge = VisEdge;
|
||||
exports.VisBranch = VisBranch;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue