Sfoglia il codice sorgente

Merge pull request #283 from busticated/amdwrapper

clean up and standardize UMD wrapper
tags/0.7.2
Michael Jackson 13 anni fa
parent
commit
4e30d03def
1 ha cambiato i file con 7 aggiunte e 9 eliminazioni
  1. +7
    -9
      mustache.js

+ 7
- 9
mustache.js Vedi File

@@ -5,17 +5,15 @@

/*global define: false*/

var Mustache;

(function (exports) {
if (typeof module !== "undefined" && module.exports) {
module.exports = exports; // CommonJS
} else if (typeof define === "function") {
define(exports); // AMD
(function (root, factory) {
if (typeof exports === "object" && exports) {
module.exports = factory; // CommonJS
} else if (typeof define === "function" && define.amd) {
define(factory); // AMD
} else {
Mustache = exports; // <script>
root.Mustache = factory; // <script>
}
}((function () {
}(this, (function () {

var exports = {};



Loading…
Annulla
Salva