Преглед на файлове

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;
};

/**


Loading…
Отказ
Запис