Skip to content

Commit

Permalink
fix global var leak
Browse files Browse the repository at this point in the history
  • Loading branch information
shenfeng committed Jun 30, 2012
1 parent a7a6e74 commit 118cf2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mustache.js
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit 118cf2f

Please sign in to comment.