diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-07 18:06:29 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 10:59:14 +0200 |
| commit | ba8a541719e1f44d2cce33bb8850c52657159087 (patch) | |
| tree | 7cf53e3824be946c81092c3aadd2ae19ee252176 | |
| parent | c3070191a943a56d45890cc87ec10bca5a7d8db1 (diff) | |
getConnectedNodesAndLinks(): switch to find_node__by_id(), state never used anyway
| -rw-r--r-- | src/model/graph.js | 6 |
1 files changed, 3 insertions, 3 deletions
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}); } |
