diff options
Diffstat (limited to 'scripts/textanalysis.js')
| -rw-r--r-- | scripts/textanalysis.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index e61bad6d..e473142b 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -401,7 +401,11 @@ var textAnalyser2 = function (newtext, finalize) { graph.removeLinks("temp"); for (k in ret.nodes) { n = ret.nodes[k]; - graph.addNode(n.id, n.type, n.state); + if (n.state == 'temp' && finalize) { + console.log('bug: temp node creation on finalize'); + } else { + graph.addNode(n.id, n.type, n.state); + } } for (k in ret.links) { l = ret.links[k]; |
