Wrap base Handlebars in a closure to prevent var leakage - fixes #205
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
/*jshint eqnull:true*/
|
||||
var Handlebars = {};
|
||||
|
||||
(function() {
|
||||
|
||||
Handlebars.VERSION = "1.0.beta.5";
|
||||
|
||||
Handlebars.helpers = {};
|
||||
@@ -95,6 +97,8 @@ Handlebars.registerHelper('log', function(context) {
|
||||
Handlebars.log(context);
|
||||
});
|
||||
|
||||
}());
|
||||
|
||||
// END(BROWSER)
|
||||
|
||||
module.exports = Handlebars;
|
||||
|
||||
Reference in New Issue
Block a user