Просмотр исходного кода

Reset the buffer only for new renderings, not e.g. partials

tags/0.3.0
Jason Smith Jan Lehnardt <jan@apache.org> 16 лет назад
Родитель
Сommit
c5a114bf88
1 измененных файлов: 2 добавлений и 1 удалений
  1. +2
    -1
      mustache.js

+ 2
- 1
mustache.js Просмотреть файл

@@ -19,7 +19,8 @@ var Mustache = function() {
render: function(template, context, partials, in_recursion) {
// reset buffer
// TODO: make this non-lazy
this.buffer = [];
if(!in_recursion)
this.buffer = [];
// fail fast
if(!this.includes("", template)) {
if(in_recursion) {


Загрузка…
Отмена
Сохранить