Преглед изворни кода

fix variable reference error

tags/0.5.0-vsc
unknown пре 16 година
родитељ
комит
17d804b189
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Прегледај датотеку

@@ -414,13 +414,13 @@ var Mustache = function() {
.replace(/>/g,'>'); .replace(/>/g,'>');
} }


var result = this.find(key, contextStack);
var result = this.find(key, contextStack[contextStack.length-1]);
if (result!==undefined) { if (result!==undefined) {
this.send_func(escapeHTML(result)); this.send_func(escapeHTML(result));
} }
}, },
render_unescaped_variable: function(key, contextStack) { render_unescaped_variable: function(key, contextStack) {
var result = this.find(key, contextStack);
var result = this.find(key, contextStack[contextStack.length-1]);
if (result!==undefined) { if (result!==undefined) {
this.send_func(result); this.send_func(result);
} }


Loading…
Откажи
Сачувај