Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

if tag: avoid leaking __keys variable into global scope #110

Merged
merged 1 commit into from

3 participants

@Almad

No description provided.

@travisbot

This pull request fails (merged 099ae537 into 2670e39).

@travisbot

This pull request passes (merged a044f4d into 2670e39).

@paularmstrong paularmstrong merged commit 05e2d32 into paularmstrong:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tags/for.js
View
2  lib/tags/for.js
@@ -38,7 +38,7 @@ module.exports = function (indent, parentBlock, parser) {
parser.compile.apply(this, [indent + ' ', parentBlock]);
out = '(function () {\n' +
- ' var loop = {}, __loopKey, __loopIndex = 0, __loopLength = 0,' +
+ ' var loop = {}, __loopKey, __loopIndex = 0, __loopLength = 0, __keys = [],' +
' __ctx_operand = _context["' + operand1 + '"],\n' +
' loop_cycle = function() {\n' +
' var args = _.toArray(arguments), i = loop.index0 % args.length;\n' +
Something went wrong with that request. Please try again.