diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-07 18:12:52 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 10:59:14 +0200 |
| commit | 4b38cbc3f7ed1a3e4f9da70a2926f7772da8a7c5 (patch) | |
| tree | 1a9374ce8ac3a3d8dee32a206f204e6f876f1e89 /src/model | |
| parent | ba8a541719e1f44d2cce33bb8850c52657159087 (diff) | |
removeNode(): rm unsued state param,
swith to find_node__by_id() use
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/graph.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/model/graph.js b/src/model/graph.js index 6784354b..d620e9a0 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -95,9 +95,8 @@ function Graph() { } } - this.removeNode = function(id, state) { - var i = 0; - var n = findNode(id, state); + this.removeNode = function(id) { + var n = find_node__by_id(id); this._removeNodes([n]); } @@ -356,7 +355,7 @@ function Graph() { links[i].__dst = index2; } } - this.removeNode(index.id,null); + this.removeNode(index.id); } } else { index.name = new_name; |
