Skip to content
Browse files

Use scope

1 parent d53e4e3 commit ab9350983030240fba5c2f85cd6d854db242ab31 @mjackson mjackson committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 mustache.js
View
6 mustache.js
@@ -5,15 +5,15 @@
/*global define: false*/
-(function (factory) {
+(function (root, factory) {
if (typeof exports === "object" && exports) {
factory(exports); // CommonJS
} else if (typeof define === "function" && define.amd) {
define(factory({})); // AMD
} else {
- factory(Mustache = {}); // <script>
+ root.Mustache = factory({}); // <script>
}
-})(function (exports) {
+})(this, function (exports) {
exports.name = "mustache.js";
exports.version = "0.7.2";

0 comments on commit ab93509

Please sign in to comment.
Something went wrong with that request. Please try again.