Ver código fonte

Fix null section data

Fixes #222
tags/0.5.2
Michael Jackson 14 anos atrás
pai
commit
e304555333
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Ver arquivo

@@ -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),


Carregando…
Cancelar
Salvar