tried to port one more, broke on events instantiation

This commit is contained in:
Peter Cottle 2012-12-09 22:06:15 -08:00
parent 8d2803e4e4
commit 6327566a63
6 changed files with 2055 additions and 32 deletions

View file

@ -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;