summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/javascript-compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-13 22:33:14 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-14 00:29:25 -0500
commit0edce6e1d1555cfbe0c55908261fc304a145f1a1 (patch)
treea9bc592ed7ddbc71ef42e640d4065dcb533c3fd0 /lib/handlebars/compiler/javascript-compiler.js
parentd95725d5fd57636078583791705cfa814bdf2258 (diff)
downloadhandlebars.js-0edce6e1d1555cfbe0c55908261fc304a145f1a1.zip
handlebars.js-0edce6e1d1555cfbe0c55908261fc304a145f1a1.tar.gz
handlebars.js-0edce6e1d1555cfbe0c55908261fc304a145f1a1.tar.bz2
Inherit compat flag for partials
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r--lib/handlebars/compiler/javascript-compiler.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js
index b9b858d..a8544d5 100644
--- a/lib/handlebars/compiler/javascript-compiler.js
+++ b/lib/handlebars/compiler/javascript-compiler.js
@@ -123,7 +123,10 @@ JavaScriptCompiler.prototype = {
ret.useData = true;
}
if (this.useDepths) {
- ret.depths = true;
+ ret.useDepths = true;
+ }
+ if (this.options.compat) {
+ ret.compat = true;
}
if (!asObject) {