diff options
author | kpdecker <kpdecker@gmail.com> | 2014-01-04 17:09:00 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-01-06 02:55:13 -0600 |
commit | daeecf825cda40d5903095cb86e6b2872870c472 (patch) | |
tree | 88e1e54b038ef3c52d4f5c650e375dc8a76466e0 /lib/handlebars/compiler/compiler.js | |
parent | 607748af3bd3135fc3113bdbfdd285e5d9edb97b (diff) | |
download | handlebars.js-daeecf825cda40d5903095cb86e6b2872870c472.zip handlebars.js-daeecf825cda40d5903095cb86e6b2872870c472.tar.gz handlebars.js-daeecf825cda40d5903095cb86e6b2872870c472.tar.bz2 |
Track stringParams mode in local state vars
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 8389f84..32d2048 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -73,6 +73,7 @@ Compiler.prototype = { this.children = []; this.depths = {list: []}; this.options = options; + this.stringParams = options.stringParams; // These changes will propagate to the other compiler components var knownHelpers = this.options.knownHelpers; @@ -193,7 +194,7 @@ Compiler.prototype = { pair = pairs[i]; val = pair[1]; - if (this.options.stringParams) { + if (this.stringParams) { if(val.depth) { this.addDepth(val.depth); } @@ -386,7 +387,7 @@ Compiler.prototype = { while(i--) { param = params[i]; - if(this.options.stringParams) { + if(this.stringParams) { if(param.depth) { this.addDepth(param.depth); } |