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

Merge pull request #283 from busticated/amdwrapper

clean up and standardize UMD wrapper
tags/0.7.2
Michael Jackson 13 лет назад
Родитель
Сommit
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 = {};



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