Ver código fonte

Don't use module object in CommonJS

Fixes #308
Fixes #285
tags/0.7.3
Michael Jackson 13 anos atrás
pai
commit
f8bfbd2820
1 arquivos alterados com 11 adições e 11 exclusões
  1. +11
    -11
      mustache.js

+ 11
- 11
mustache.js Ver arquivo

@@ -5,15 +5,19 @@


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


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


var whiteRe = /\s*/; var whiteRe = /\s*/;
var spaceRe = /\s+/; var spaceRe = /\s+/;
@@ -462,8 +466,6 @@
return nestTokens(tokens); return nestTokens(tokens);
} }


var mustache = {};

mustache.name = "mustache.js"; mustache.name = "mustache.js";
mustache.version = "0.7.2"; mustache.version = "0.7.2";
mustache.tags = ["{{", "}}"]; mustache.tags = ["{{", "}}"];
@@ -531,6 +533,4 @@
} }
}; };


return mustache;

}())));
}));

Carregando…
Cancelar
Salvar