Просмотр исходного кода

Don't use module.exports

fix_commonjs
Michael Jackson 13 лет назад
Родитель
Сommit
d53e4e38fd
1 измененных файлов: 6 добавлений и 8 удалений
  1. +6
    -8
      mustache.js

+ 6
- 8
mustache.js Просмотреть файл

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


/*global define: false*/ /*global define: false*/


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

var exports = {};
})(function (exports) {


exports.name = "mustache.js"; exports.name = "mustache.js";
exports.version = "0.7.2"; exports.version = "0.7.2";
@@ -532,4 +530,4 @@


return exports; return exports;


}())));
});

Загрузка…
Отмена
Сохранить