diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-23 20:32:47 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-23 20:32:47 +0300 |
| commit | 3a23b990c27499a52738b67a802c4ec7fcb76e42 (patch) | |
| tree | f68f79b3e34954bef81cf9d1284e20af8d2db9de /scripts/rhizicore.js | |
| parent | 6a3c4aa7d0a2663122c7099d235f1cb908ce9b20 (diff) | |
Fixes #51: type changes on mixed case / upper case node names
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 2 |
1 files changed, 1 insertions, 1 deletions
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] |
