summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/javascript-compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r--lib/handlebars/compiler/javascript-compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js
index 9bd70be..3e4f5e1 100644
--- a/lib/handlebars/compiler/javascript-compiler.js
+++ b/lib/handlebars/compiler/javascript-compiler.js
@@ -697,7 +697,7 @@ JavaScriptCompiler.prototype = {
child.index = index;
child.name = 'program' + index;
- this.useDepths = this.useDepths || child.depths.list.length;
+ this.useDepths = this.useDepths || child.useDepths;
}
}
},