summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js5
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);
}