diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 336b60d..2cdc7c0 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -1,6 +1,8 @@ var Handlebars = require("./base"); // BEGIN(BROWSER) + +/*jshint eqnull:true*/ Handlebars.Compiler = function() {}; Handlebars.JavaScriptCompiler = function() {}; @@ -139,7 +141,7 @@ Handlebars.JavaScriptCompiler = function() {}; compileProgram: function(program) { var result = new this.compiler().compile(program, this.options); - var guid = this.guid++; + var guid = this.guid++, depth; this.usePartial = this.usePartial || result.usePartial; @@ -643,7 +645,7 @@ Handlebars.JavaScriptCompiler = function() {}; }, invokePartial: function(context) { - params = [this.nameLookup('partials', context, 'partial'), "'" + context + "'", this.popStack(), "helpers", "partials"]; + var params = [this.nameLookup('partials', context, 'partial'), "'" + context + "'", this.popStack(), "helpers", "partials"]; if (this.options.data) { params.push("data"); @@ -682,7 +684,8 @@ Handlebars.JavaScriptCompiler = function() {}; if(guid == null) { return "self.noop"; } var child = this.environment.children[guid], - depths = child.depths.list; + depths = child.depths.list, depth; + var programParams = [child.index, child.name, "data"]; for(var i=0, l = depths.length; i<l; i++) { |