19 lines
246 B
JavaScript
19 lines
246 B
JavaScript
exports.attach = function(Handlebars) {
|
|
|
|
// BEGIN(BROWSER)
|
|
|
|
Handlebars.Visitor = function() {};
|
|
|
|
Handlebars.Visitor.prototype = {
|
|
accept: function(object) {
|
|
return this[object.type](object);
|
|
}
|
|
};
|
|
|
|
// END(BROWSER)
|
|
|
|
return Handlebars;
|
|
};
|
|
|
|
|