Fix global Handlebars references
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user