浏览代码

Style tweaks

tags/0.8.1
Michael Jackson 12 年前
父节点
当前提交
16ffa430a1
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. +6
    -3
      mustache.js

+ 6
- 3
mustache.js 查看文件

@@ -411,11 +411,14 @@
* that is generated from the parse.
*/
Writer.prototype.parse = function (template, tags) {
if (!(template in this.cache)) {
this.cache[template] = parseTemplate(template, tags);
var cache = this.cache;
var tokens = cache[template];

if (tokens == null) {
tokens = cache[template] = parseTemplate(template, tags);
}

return this.cache[template];
return tokens;
};

/**


正在加载...
取消
保存