diff options
Diffstat (limited to 'scripts/textanalysis.js')
| -rw-r--r-- | scripts/textanalysis.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index 2465a3ab..e5729ef3 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -163,6 +163,9 @@ var textAnalyser = function (newtext, finalize) { START = "START"; function addNode(name, type, state) { + if (type === undefined) { + console.log('bug: textanalyser.addNode of type undefined'); + } ret.nodes.push({'name':name, 'type':type, 'state':state}); } function addLink(src, dst, name, state) { |
