浏览代码

Simplify UMD wrapper

tags/v1.0.0
Michael Jackson 12 年前
父节点
当前提交
799f55d157
共有 1 个文件被更改,包括 6 次插入10 次删除
  1. +6
    -10
      mustache.js

+ 6
- 10
mustache.js 查看文件

@@ -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;

}));

正在加载...
取消
保存