Restructure files to make more sense in a non-CommonJS world.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
var Lexer = function() {};
|
||||
if(exports) { var Handlebars = {} }
|
||||
|
||||
Lexer.prototype = {
|
||||
Handlebars.Lexer = function() {};
|
||||
|
||||
Handlebars.Lexer.prototype = {
|
||||
setInput: function(input) {
|
||||
this.input = input;
|
||||
this.yylineno = 0;
|
||||
@@ -44,15 +46,15 @@ Lexer.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
var Visitor = function() {};
|
||||
Handlebars.Visitor = function() {};
|
||||
|
||||
Visitor.prototype = {
|
||||
Handlebars.Visitor.prototype = {
|
||||
accept: function(object) {
|
||||
return this[object.type](object);
|
||||
}
|
||||
}
|
||||
|
||||
if(exports) {
|
||||
exports.Lexer = Lexer;
|
||||
exports.Visitor = Visitor;
|
||||
exports.Lexer = Handlebars.Lexer;
|
||||
exports.Visitor = Handlebars.Visitor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user