diff --git a/mustache.js b/mustache.js index c3c9293..50ce7c8 100644 --- a/mustache.js +++ b/mustache.js @@ -685,8 +685,6 @@ var Mustache = function() { contextStack.pop(); } else if (this.is_function(value)) { // higher order section - var that = this; - var result = value.call(contextStack[contextStack.length-1], fragmentTokens.join(''), function(resultFragment) { var tempStream = []; var old_send_func = that.user_send_func; @@ -812,8 +810,6 @@ var Mustache = function() { } }; - var that = this; - if (sectionType==='invertedSection') { this.user_send_func(function(contextStack, send_func) { var value = that.find_in_stack(key, contextStack);