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

Fix null section data

Fixes #222
tags/0.5.2
Michael Jackson 14 лет назад
Родитель
Сommit
e304555333
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      mustache.js

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

@@ -261,7 +261,7 @@ var Mustache;
return buffer;
}

return callback(context.push(value), this);
return value ? callback(context.push(value), this) : "";
case "function":
// TODO: The text should be passed to the callback plain, not rendered.
var sectionText = callback(context, this),


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