From 4b38cbc3f7ed1a3e4f9da70a2926f7772da8a7c5 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 7 Dec 2014 18:12:52 +0200 Subject: removeNode(): rm unsued state param, swith to find_node__by_id() use --- src/model/graph.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/model/graph.js') 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; -- cgit v1.3.1