diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-07 19:46:41 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 10:59:14 +0200 |
| commit | 651f5c29d25dc9caa24dc596919e62def6a2273e (patch) | |
| tree | c2aa292038a33b8e321d91735af60b1dcbb28bd0 /src/textanalysis.js | |
| parent | 9d8a9524c33cafbf8525d3c0b901ae007dc05694 (diff) | |
removeNodes(): add filter param
Diffstat (limited to 'src/textanalysis.js')
| -rw-r--r-- | src/textanalysis.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textanalysis.js b/src/textanalysis.js index 1dee6ed6..6ecb8f72 100644 --- a/src/textanalysis.js +++ b/src/textanalysis.js @@ -404,7 +404,7 @@ var textAnalyser = function (newtext, finalize) { }); } else { // REINITIALISE GRAPH (DUMB BUT IT WORKS) - graph.removeNodes("temp"); + graph.removeNodes(function(n){ return "temp" == n.state; }); graph.removeLinks("temp"); ret.for_each_node_add(function (node) { |
