Move visitor into compiler subdir

This commit is contained in:
kpdecker
2011-07-30 10:28:31 -05:00
parent 2fc01ff73a
commit 8c49721c70
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
var Handlebars = require("handlebars");
require("handlebars/visitor");
require("./visitor");
// BEGIN(BROWSER)
Handlebars.PrintVisitor = function() { this.padding = 0; };
+13
View File
@@ -0,0 +1,13 @@
var Handlebars = require("handlebars");
// BEGIN(BROWSER)
Handlebars.Visitor = function() {};
Handlebars.Visitor.prototype = {
accept: function(object) {
return this[object.type](object);
}
};
// END(BROWSER)