Procházet zdrojové kódy

Simplify UMD wrapper

tags/v1.0.0
Michael Jackson před 12 roky
rodič
revize
799f55d157
1 změnil soubory, kde provedl 6 přidání a 10 odebrání
  1. +6
    -10
      mustache.js

+ 6
- 10
mustache.js Zobrazit soubor

@@ -5,19 +5,13 @@

/*global define: false*/

(function (root, factory) {
(function (global, factory) {
if (typeof exports === "object" && exports) {
factory(exports); // CommonJS
} else if (typeof define === "function" && define.amd) {
define(factory({})); // AMD
} else {
var mustache = {};

factory(mustache);

if (typeof define === "function" && define.amd) {
define(mustache); // AMD
} else {
root.Mustache = mustache; // <script>
}
global.Mustache = factory({}); // <script>
}
}(this, function (mustache) {

@@ -581,4 +575,6 @@
mustache.Context = Context;
mustache.Writer = Writer;

return mustache;

}));

Načítá se…
Zrušit
Uložit