Selaa lähdekoodia

Use var declaration for helper functions

tags/0.5.2
Michael Jackson 14 vuotta sitten
vanhempi
commit
72971b320c
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Näytä tiedosto

@@ -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:


Loading…
Peruuta
Tallenna