diff options
author | kpdecker <kpdecker@gmail.com> | 2013-10-01 00:13:48 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-10-01 00:13:48 -0500 |
commit | 80b748ad3e34b29249af134e214d57fec92e22a4 (patch) | |
tree | 4df24264a6f5b603d9d9f0a8509c6528fba11a6e /lib/handlebars/compiler | |
parent | fbf8f134fa461cd0713a22e75fce65d78b0e6b40 (diff) | |
download | handlebars.js-80b748ad3e34b29249af134e214d57fec92e22a4.zip handlebars.js-80b748ad3e34b29249af134e214d57fec92e22a4.tar.gz handlebars.js-80b748ad3e34b29249af134e214d57fec92e22a4.tar.bz2 |
Fix global Handlebars references
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r-- | lib/handlebars/compiler/printer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js index 0280960..01b05d1 100644 --- a/lib/handlebars/compiler/printer.js +++ b/lib/handlebars/compiler/printer.js @@ -2,10 +2,10 @@ import Visitor from "./visitor"; export function print(ast) { return new PrintVisitor().accept(ast); -}; +} -export function PrintVisitor() { this.padding = 0; }; -PrintVisitor.prototype = new Handlebars.Visitor(); +export function PrintVisitor() { this.padding = 0; } +PrintVisitor.prototype = new Visitor(); PrintVisitor.prototype.pad = function(string, newline) { var out = ""; @@ -60,7 +60,7 @@ PrintVisitor.prototype.block = function(block) { return out; }; -Handlebars.PrintVisitor.prototype.mustache = function(mustache) { +PrintVisitor.prototype.mustache = function(mustache) { var params = mustache.params, paramStrings = [], hash; for(var i=0, l=params.length; i<l; i++) { |