Explorar el Código

fixed regression where false-y values *do* need to yield null/empty value iterators

parser-rewrite
nathan@stravinsky.local hace 16 años
padre
commit
110b9e9235
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Ver fichero

@@ -218,7 +218,7 @@ var Mustache = function() {
valueIterator: function(name, context) {
var value = this.lookupValue(name, context);
var me = this;
if (value == null) {
if (!value) {
return function(){};
} else if (value instanceof Function && value.iterator) {
return value;


Cargando…
Cancelar
Guardar