Explorar el Código

Use var declaration for helper functions

tags/0.5.2
Michael Jackson hace 14 años
padre
commit
72971b320c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Ver fichero

@@ -239,9 +239,9 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
break;
case "function":
var sectionText = callback(context, this), self = this;
function scopedRender(template) {
var scopedRender = function (template) {
return self.render(template, context);
}
};
return value.call(context.view, sectionText, scopedRender) || "";
break;
default:


Cargando…
Cancelar
Guardar