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

Clear buffer before rendering. Closes #26.

tags/0.3.0
Jan Lehnardt 16 лет назад
Родитель
Сommit
6e4bd7f86b
1 измененных файлов: 3 добавлений и 0 удалений
  1. +3
    -0
      mustache.js

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

@@ -17,6 +17,9 @@ var Mustache = function() {
},

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


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