Explorar el Código

Merge pull request #227 from shenfeng/master

fix 2 unintended global var.
tags/0.5.2
Jan Lehnardt hace 14 años
padre
commit
d7ddff2fc8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Ver fichero

@@ -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);



Cargando…
Cancelar
Guardar