diff options
author | kpdecker <kpdecker@gmail.com> | 2014-12-01 01:23:15 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-12-16 12:57:46 -0600 |
commit | 0d396ccd30b51d3c5ffb7fb3e79670d89b610163 (patch) | |
tree | 3849835138494016643d787eadbfc12668eea974 /lib/handlebars/compiler/javascript-compiler.js | |
parent | ae8c1d229f03558adec418bce6034bf27dcb9d67 (diff) | |
download | handlebars.js-0d396ccd30b51d3c5ffb7fb3e79670d89b610163.zip handlebars.js-0d396ccd30b51d3c5ffb7fb3e79670d89b610163.tar.gz handlebars.js-0d396ccd30b51d3c5ffb7fb3e79670d89b610163.tar.bz2 |
Remove Compiler.depths parameter
This is no longer necessary with the depths array tracking and adds compiler overhead.
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index 537d1b0..dfe2df1 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -80,7 +80,7 @@ JavaScriptCompiler.prototype = { this.compileChildren(environment, options); - this.useDepths = this.useDepths || environment.depths.list.length || this.options.compat; + this.useDepths = this.useDepths || environment.useDepths || this.options.compat; var opcodes = environment.opcodes, opcode, @@ -710,9 +710,7 @@ JavaScriptCompiler.prototype = { programExpression: function(guid) { var child = this.environment.children[guid], - depths = child.depths.list, - useDepths = this.useDepths, - depth; + useDepths = this.useDepths; var programParams = [child.index, 'data']; |