ソースを参照

Merge pull request #283 from busticated/amdwrapper

clean up and standardize UMD wrapper
tags/0.7.2
Michael Jackson 13年前
コミット
4e30d03def
1個のファイルの変更7行の追加9行の削除
  1. +7
    -9
      mustache.js

+ 7
- 9
mustache.js ファイルの表示

@@ -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 = {};



読み込み中…
キャンセル
保存