From ba8a541719e1f44d2cce33bb8850c52657159087 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 7 Dec 2014 18:06:29 +0200 Subject: getConnectedNodesAndLinks(): switch to find_node__by_id(), state never used anyway --- src/model/graph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/model/graph.js b/src/model/graph.js index b95e2ab3..6784354b 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -159,7 +159,7 @@ function Graph() { chosen_nodes.forEach(function (n) { var adjacentnode; if (same(link.__src, n)) { - adjacentnode = findNode(link.__dst.id, null); + adjacentnode = find_node__by_id(link.__dst.id); if (adjacentnode.state !== "temp") { addNode({type: 'exit', node: adjacentnode}); } @@ -169,7 +169,7 @@ function Graph() { if (link.__dst.id === link2.__dst.id && link2.__dst.type === "chainlink" && link2.__dst.state !== "temp") { - adjacentnode = findNode(link2.__src.id, null); + adjacentnode = find_node__by_id(link2.__src.id); if (adjacentnode.state !== "temp") { addNode({type: 'enter', node: adjacentnode}); } @@ -179,7 +179,7 @@ function Graph() { } } if (same(link.__dst, n)) { - adjacentnode = findNode(link.__src.id, null); + adjacentnode = find_node__by_id(link.__src.id); if (adjacentnode.state !== "temp") { addNode({type: 'enter', node: adjacentnode}); } -- cgit v1.3.1