summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-12-17 00:40:28 -0600
committerkpdecker <kpdecker@gmail.com>2014-12-17 00:40:28 -0600
commit6d2239d8ac471d05086026e2bd622f879ccde52b (patch)
tree6e4a4d7379a9b579ef7ec9040ec692d9f7e723c2
parent59e80c510391c4535aa07780dc407524f83a9f11 (diff)
downloadhandlebars.js-6d2239d8ac471d05086026e2bd622f879ccde52b.zip
handlebars.js-6d2239d8ac471d05086026e2bd622f879ccde52b.tar.gz
handlebars.js-6d2239d8ac471d05086026e2bd622f879ccde52b.tar.bz2
Update fix for #926 for 3.0 codeline
-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;
}
}
},