diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-07 18:15:40 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 10:59:14 +0200 |
| commit | ce7d10b880baf92fd447aaedf22f981d3a8bb277 (patch) | |
| tree | b7787187ff1206b54cc11d7391380132143d421d | |
| parent | 4b38cbc3f7ed1a3e4f9da70a2926f7772da8a7c5 (diff) | |
rename removeNodes -> _remove_node_set
| -rw-r--r-- | src/model/graph.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/graph.js b/src/model/graph.js index d620e9a0..cf632815 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -74,7 +74,7 @@ function Graph() { } this.__addNode = __addNode; - this._removeNodes = function(ns) { + this._remove_node_set = function(ns) { for (var j = 0; j < ns.length; j++) { var n = ns[j]; var i = 0; @@ -86,7 +86,7 @@ function Graph() { if (index !== undefined) { nodes.splice(index, 1); - util.assert(undefined != n.id, '_removeNodes: node id missing'); + util.assert(undefined != n.id, '_remove_node_set: node id missing'); delete id_to_node_map[n.id]; } } @@ -97,13 +97,13 @@ function Graph() { this.removeNode = function(id) { var n = find_node__by_id(id); - this._removeNodes([n]); + this._remove_node_set([n]); } this.removeNodes = function(state) { var id = null; var ns = findNodes(null, state); - this._removeNodes(ns); + this._remove_node_set(ns); } /** |
