diff --git a/mustache.js b/mustache.js index af48fd1..65a07f3 100644 --- a/mustache.js +++ b/mustache.js @@ -5,17 +5,15 @@ /*global define: false*/ -(function (root, factory) { +(function (factory) { if (typeof exports === "object" && exports) { - module.exports = factory; // CommonJS + factory(exports); // CommonJS } else if (typeof define === "function" && define.amd) { - define(factory); // AMD + define(factory({})); // AMD } else { - root.Mustache = factory; //