diff options
author | kpdecker <kpdecker@gmail.com> | 2013-02-16 13:56:19 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-02-16 13:56:19 -0600 |
commit | 10453d1ef8b259ac0af4febb3beb37d636d4f2d7 (patch) | |
tree | 8135ddd29e525ea0449a1f1216924aaee4f4fca8 /lib/handlebars/compiler/compiler.js | |
parent | da5cde5d1f5d4e158449ebf8ed223a52433d4013 (diff) | |
download | handlebars.js-10453d1ef8b259ac0af4febb3beb37d636d4f2d7.zip handlebars.js-10453d1ef8b259ac0af4febb3beb37d636d4f2d7.tar.gz handlebars.js-10453d1ef8b259ac0af4febb3beb37d636d4f2d7.tar.bz2 |
Use local vars
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 04bf5cd..b57386e 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -1234,8 +1234,8 @@ Handlebars.precompile = function(input, options) { options.data = true; } var ast = Handlebars.parse(input); - var environment = new Handlebars.Compiler().compile(ast, options); - return new Handlebars.JavaScriptCompiler().compile(environment, options); + var environment = new Compiler().compile(ast, options); + return new JavaScriptCompiler().compile(environment, options); }; Handlebars.compile = function(input, options) { @@ -1250,8 +1250,8 @@ Handlebars.compile = function(input, options) { var compiled; function compile() { var ast = Handlebars.parse(input); - var environment = new Handlebars.Compiler().compile(ast, options); - var templateSpec = new Handlebars.JavaScriptCompiler().compile(environment, options, undefined, true); + var environment = new Compiler().compile(ast, options); + var templateSpec = new JavaScriptCompiler().compile(environment, options, undefined, true); return Handlebars.template(templateSpec); } |