Skip to content

Commit 72971b3

Browse files
committed
Use var declaration for helper functions
1 parent 585bff4 commit 72971b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mustache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
239239
break;
240240
case "function":
241241
var sectionText = callback(context, this), self = this;
242-
function scopedRender(template) {
242+
var scopedRender = function (template) {
243243
return self.render(template, context);
244-
}
244+
};
245245
return value.call(context.view, sectionText, scopedRender) || "";
246246
break;
247247
default:

0 commit comments

Comments
 (0)