summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-11-19 03:27:41 +0200
committerAlon Levy <alon@pobox.com>2014-11-25 15:07:15 +0200
commitae1f55e1d59bef021752165ab76f07f7144f7dc9 (patch)
tree21ea8dc894f35898276c8f183e6be1911522f2fc
parent7cdbdbf8c5c823b66abd4e313e831671f2a0c370 (diff)
replace _addNodeNoHistory() call with addNode
-rw-r--r--src/model/graph.js4
-rw-r--r--src/rz_core.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/model/graph.js b/src/model/graph.js
index 160a8dfe..567446f8 100644
--- a/src/model/graph.js
+++ b/src/model/graph.js
@@ -569,7 +569,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.__addNode({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),
@@ -577,7 +577,7 @@ function Graph(el) {
url:node.url,
x: node.x,
y: node.y,
- });
+ }, false);
textanalysis.autoSuggestAddName(node.name.toLowerCase());
}
for(i = 0; i < data["links"].length; i++){
diff --git a/src/rz_core.js b/src/rz_core.js
index 8affa1b9..3b2ba31e 100644
--- a/src/rz_core.js
+++ b/src/rz_core.js
@@ -141,7 +141,7 @@ function canvas_handler_dblclick(){
var n = model_core.create_node__set_random_id();
n.name = ''; // will be set by user
- graph._addNodeNoHistory(n); // FIXME: clean once node creation functions consolidate
+ graph.addNode(n);
graph.update();
var n_ve = locate_visual_element(n); // locate visual element