summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-23 19:42:31 +0300
committerAlon Levy <alon@pobox.com>2014-09-23 19:42:31 +0300
commitb0dc9ba6372735708e34a42c81e20e29d44dbc76 (patch)
tree17ff6a36ef02854b2abb3d900dd9592b2fc3ed9a /scripts
parentd63c15c092cb74499ba25b884a12dc00bf80aaf6 (diff)
fix a #50 noticed error (introduced in af27835b)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/textanalysis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index a3694887..eb77d90f 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -19,7 +19,7 @@ function autoSuggestAddName(name)
{
/* note that name can contain spaces - this is ok. We might want to limit this though? */
if(name.split(" ").length > 1) {
- sugg['"'+newnodes[n]+'"'] = 1;
+ sugg['"' + name + '"'] = 1;
} else {
sugg[name] = 1;
}