diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-02 17:57:53 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-02 18:16:57 +0200 |
| commit | 7308de79aefd12b97aba946676548e35e151af27 (patch) | |
| tree | ce5ce6db8a11f8bc86edb6b9ca5402f64711c2a9 /scripts | |
| parent | 445969fbab231a56ff612f29eef29960c1cbebbd (diff) | |
graph: make addNodeNoHistory internal
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/model/graph.js | 6 |
1 files changed, 3 insertions, 3 deletions
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), |
