Procházet zdrojové kódy

Merge pull request #227 from shenfeng/master

fix 2 unintended global var.
tags/0.5.2
Jan Lehnardt před 14 roky
rodič
revize
d7ddff2fc8
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Zobrazit soubor

@@ -433,7 +433,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
var lastToken;

for (var i = 0; i < tokens.length; ++i) {
token = tokens[i];
var token = tokens[i];

if (lastToken && lastToken.type === "text" && token.type === "text") {
lastToken.value += token.value;
@@ -452,7 +452,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
*/
function parse(template, tags) {
tags = tags || exports.tags;
tagRes = escapeTags(tags);
var tagRes = escapeTags(tags);

var scanner = new Scanner(template);



Načítá se…
Zrušit
Uložit