Skip to content

Commit

Permalink
Expose Visitor in full browser build
Browse files Browse the repository at this point in the history
Fixes #994
  • Loading branch information
kpdecker committed Apr 14, 2015
1 parent dfd141c commit a7160a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import AST from "./handlebars/compiler/ast";
import { parser as Parser, parse } from "./handlebars/compiler/base";
import { Compiler, compile, precompile } from "./handlebars/compiler/compiler";
import JavaScriptCompiler from "./handlebars/compiler/javascript-compiler";
import Visitor from "./handlebars/compiler/visitor";

var _create = Handlebars.create;
var create = function() {
Expand All @@ -30,6 +31,8 @@ var create = function() {
Handlebars = create();
Handlebars.create = create;

Handlebars.Visitor = Visitor;

/*jshint -W040 */
/* istanbul ignore next */
var root = typeof global !== 'undefined' ? global : window,
Expand Down
2 changes: 0 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

var handlebars = require('../dist/cjs/handlebars')["default"];

handlebars.Visitor = require('../dist/cjs/handlebars/compiler/visitor')["default"];

var printer = require('../dist/cjs/handlebars/compiler/printer');
handlebars.PrintVisitor = printer.PrintVisitor;
handlebars.print = printer.print;
Expand Down

0 comments on commit a7160a8

Please sign in to comment.