Restore module scope in base.js

This commit is contained in:
kpdecker
2013-02-15 19:41:10 -06:00
parent f72cbed479
commit e3454a0187
3 changed files with 16 additions and 14 deletions
+7 -6
View File
@@ -1,9 +1,13 @@
/*jshint eqnull: true */
module.exports.create = function() {
// BEGIN(BROWSER)
var Handlebars = {};
(function(Handlebars) {
Handlebars.VERSION = "1.0.0-rc.3";
Handlebars.COMPILER_REVISION = 2;
@@ -37,8 +41,6 @@ var toString = Object.prototype.toString, functionType = "[object Function]";
Handlebars.registerHelper('blockHelperMissing', function(context, options) {
var inverse = options.inverse || function() {}, fn = options.fn;
var ret = "";
var type = toString.call(context);
if(type === functionType) { context = context.call(this); }
@@ -145,10 +147,9 @@ Handlebars.registerHelper('log', function(context, options) {
Handlebars.log(level, context);
});
}(Handlebars));
// END(BROWSER)
return Handlebars;
};