Procházet zdrojové kódy

Fixes AMD registration, volo package.json entry

This change allows the AMD define signature to match what common AMD optimizers use to find define calls that need naming.
Also updates the volo package.json entry so that the correct version of mustache can be fetched properly.
tags/v1.0.0
jrburke před 12 roky
rodič
revize
2e12efdeda
2 změnil soubory, kde provedl 4 přidání a 6 odebrání
  1. +3
    -5
      mustache.js
  2. +1
    -1
      package.json

+ 3
- 5
mustache.js Zobrazit soubor

@@ -9,9 +9,9 @@
if (typeof exports === "object" && exports) {
factory(exports); // CommonJS
} else if (typeof define === "function" && define.amd) {
define(factory({})); // AMD
define(['exports'], factory); // AMD
} else {
global.Mustache = factory({}); // <script>
factory(global.Mustache = {}); // <script>
}
}(this, function (mustache) {

@@ -39,7 +39,7 @@
function isWhitespace(string) {
return !testRegExp(nonSpaceRe, string);
}
var entityMap = {
"&": "&amp;",
"<": "&lt;",
@@ -575,6 +575,4 @@
mustache.Context = Context;
mustache.Writer = Writer;

return mustache;

}));

+ 1
- 1
package.json Zobrazit soubor

@@ -13,7 +13,7 @@
"mocha": "1.5.0"
},
"volo": {
"url": "https://raw.github.com/janl/mustache.js/0.7.3/mustache.js"
"url": "https://raw.github.com/janl/mustache.js/{version}/mustache.js"
},
"scripts": {
"test": "mocha test"


Načítá se…
Zrušit
Uložit