Browse Source

clean up and standardize UMD wrapper

tags/0.7.2
busticated 13 years ago
parent
commit
fa214bd660
1 changed files with 7 additions and 9 deletions
  1. +7
    -9
      mustache.js

+ 7
- 9
mustache.js View 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") {
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…
Cancel
Save