summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/graph.js7
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;