Просмотр исходного кода

Remove extra that assignments

tags/0.5.0-vsc
thegrandpoobah 15 лет назад
Родитель
Сommit
9feff6612a
1 измененных файлов: 0 добавлений и 4 удалений
  1. +0
    -4
      mustache.js

+ 0
- 4
mustache.js Просмотреть файл

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


Загрузка…
Отмена
Сохранить