From 7308de79aefd12b97aba946676548e35e151af27 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 2 Nov 2014 17:57:53 +0200 Subject: graph: make addNodeNoHistory internal --- scripts/model/graph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/model') diff --git a/scripts/model/graph.js b/scripts/model/graph.js index 42c01135..ec35c47e 100644 --- a/scripts/model/graph.js +++ b/scripts/model/graph.js @@ -10,7 +10,7 @@ function Graph(el) { ///FUNCTIONS this.addNode = function(id, type, state) { - var new_node = this.addNodeNoHistory( + var new_node = this._addNodeNoHistory( {id:id, name:id, type:type, @@ -24,7 +24,7 @@ function Graph(el) { } } - this.addNodeNoHistory = function(spec) { + this._addNodeNoHistory = function(spec) { // No history recorded - this is a helper for loading from files / constant graphs var id = spec.id.toString().toLowerCase(); var node = findNode(id, null); @@ -429,7 +429,7 @@ function Graph(el) { } for(i = 0; i < data["nodes"].length; i++){ node = data.nodes[i]; - this.addNodeNoHistory({id:node.id, name:node.name ? node.name : node.id, + this._addNodeNoHistory({id:node.id, name:node.name ? node.name : node.id, type:node.type,state:"perm", start:new Date(node.start), end:new Date(node.end), -- cgit v1.3.1