浏览代码

Merge pull request #378 from jrburke/umd-fix

Fixes AMD registration, volo package.json entry
tags/v1.0.0
Michael Jackson 12 年前
父节点
当前提交
32db14a490
共有 2 个文件被更改,包括 4 次插入6 次删除
  1. +3
    -5
      mustache.js
  2. +1
    -1
      package.json

+ 3
- 5
mustache.js 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存