From 3a23b990c27499a52738b67a802c4ec7fcb76e42 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 23 Sep 2014 20:32:47 +0300 Subject: Fixes #51: type changes on mixed case / upper case node names --- scripts/rhizicore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 4c584506..455c4ab5 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -338,7 +338,7 @@ function myGraph(el) { var findNode = function(id, state) { - //id=id.toLowerCase(); + id = id && id.toLowerCase(); for (var i = 0; i < nodes.length; i++) { if (nodes[i].id === id || nodes[i].state === state) return nodes[i] -- cgit v1.3.1