diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-29 15:00:23 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-29 15:00:23 -0800 |
commit | 497065b580828e050087896ac05d0e1f1fdd8627 (patch) | |
tree | 2e763bdd70a7444a0591c6ffe020a6c3f2720aee /src/framework.js | |
parent | 6c4725c1ff57d02794c19d64e16ac6757e91fd04 (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.js | 5 |
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; |