diff options
author | alon@honor <none@none> | 2010-10-17 20:59:50 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-17 20:59:50 -0700 |
commit | d16c1a6c068b8a293cf63723324e792dea187992 (patch) | |
tree | 9dbeb6ab275af1d60147d4b6df2776c7e873d49c /src/enzymatic.js | |
parent | 4acb8fa3279136ab9cfc6279e0bf1372d6520d11 (diff) |
misc minor fixes
Diffstat (limited to 'src/enzymatic.js')
-rw-r--r-- | src/enzymatic.js | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/enzymatic.js b/src/enzymatic.js index bb4458fe..5983f305 100644 --- a/src/enzymatic.js +++ b/src/enzymatic.js @@ -76,16 +76,10 @@ Substrate.prototype = { var inputs = zyme.items.slice(0); var outputs; var currResultCount = that.results.length; - try { - dprint('Processing using ' + zyme.name_ + ': ' + inputs.length); - zyme.items = []; // More may be added in process(); we'll get to them next time - outputs = zyme.process(inputs); - dprint('New results: ' + (outputs.length + that.results.length - currResultCount) + ' out of ' + (that.results.length + outputs.length)); - } catch (e) { - print("Exception, current selected are: " + inputs.map(dump).join('\n\n')); - print("Stack: " + dump(new Error().stack)); - throw e; - } + dprint('Processing using ' + zyme.name_ + ': ' + inputs.length); + zyme.items = []; // More may be added in process(); we'll get to them next time + outputs = zyme.process(inputs); + dprint('New results: ' + (outputs.length + that.results.length - currResultCount) + ' out of ' + (that.results.length + outputs.length)); hadProcessing = true; if (outputs) { @@ -124,14 +118,9 @@ Zyme.prototype = { var ret = []; for (var i = 0; i < items.length; i++) { var item = items[i]; - try { - var outputs = this.processItem(item); - if (outputs) { - ret = ret.concat(outputs); - } - } catch (e) { - print("Exception in process(), current item is: " + dump(item)); - throw e; + var outputs = this.processItem(item); + if (outputs) { + ret = ret.concat(outputs); } } return ret; |