aboutsummaryrefslogtreecommitdiff
path: root/src/framework.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-29 15:00:23 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-29 15:00:23 -0800
commit497065b580828e050087896ac05d0e1f1fdd8627 (patch)
tree2e763bdd70a7444a0591c6ffe020a6c3f2720aee /src/framework.js
parent6c4725c1ff57d02794c19d64e16ac6757e91fd04 (diff)
discard almost all .tokens when intertyper ends, to save memory (all except for inside Globals)
Diffstat (limited to 'src/framework.js')
-rw-r--r--src/framework.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/framework.js b/src/framework.js
index 0f9e70d0..6e2bbe81 100644
--- a/src/framework.js
+++ b/src/framework.js
@@ -192,8 +192,9 @@ Substrate.prototype = {
if (!hadProcessing) {
if (DEBUG) print("Solving complete: no remaining items");
finalComment();
- this.results.forEach(function(output) {
- delete output.__uid__; // Might recycle these
+ this.results.forEach(function(result) {
+ delete result.__uid__; // Might recycle these
+ if (that.onResult) that.onResult(result);
});
ret = this.results;
break;