summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/visitor.js
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2013-07-02 18:57:28 +0000
committerYehuda Katz <wycats@gmail.com>2013-07-02 18:57:28 +0000
commit12f8299eb25e605d825f96f50599fc3851c9d8ec (patch)
tree0a90896ddeefa549ae8664b4c83aa2014437dff8 /lib/handlebars/compiler/visitor.js
parent88ee4757e77f97afb206132eddb64e688700eb37 (diff)
downloadhandlebars.js-12f8299eb25e605d825f96f50599fc3851c9d8ec.zip
handlebars.js-12f8299eb25e605d825f96f50599fc3851c9d8ec.tar.gz
handlebars.js-12f8299eb25e605d825f96f50599fc3851c9d8ec.tar.bz2
More modularization
Diffstat (limited to 'lib/handlebars/compiler/visitor.js')
-rw-r--r--lib/handlebars/compiler/visitor.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/handlebars/compiler/visitor.js b/lib/handlebars/compiler/visitor.js
index 5d07314..29ea82c 100644
--- a/lib/handlebars/compiler/visitor.js
+++ b/lib/handlebars/compiler/visitor.js
@@ -1,18 +1,9 @@
-exports.attach = function(Handlebars) {
+export function Visitor() {};
-// BEGIN(BROWSER)
+Visitor.prototype = {
+ constructor: Visitor,
-Handlebars.Visitor = function() {};
-
-Handlebars.Visitor.prototype = {
accept: function(object) {
return this[object.type](object);
}
};
-
-// END(BROWSER)
-
-return Handlebars;
-};
-
-