From f7c32bf55b857042a665263b02f0b3213ecbef3a Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 6 Oct 2014 15:20:37 +0300 Subject: rhizicore: don't change state of existing nodes on addition changing state of existing node results in ability to delete nodes while creating a new sentence by inputting a node name and then deleting it. This was fixed for the common case in a previous commit, but not for the case of loading from storage. --- scripts/rhizicore.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 91b2c634..26059cc6 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -70,9 +70,7 @@ function myGraph(el) { // No history recorded - this is a helper for loading from files / constant graphs id = id.toLowerCase(); var node = findNode(id, null); - if (node !== undefined) { - graph.editState(id, null, "temp"); - } else { + if (node === undefined) { nodes.push(makeNewNode({ "id": id, "name": name, -- cgit v1.3.1