Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

3 participants

Almad Don't Add Me To Your Organization a.k.a The Travis Bot Paul Armstrong
Almad

No description provided.

Don't Add Me To Your Organization a.k.a The Travis Bot

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

Don't Add Me To Your Organization a.k.a The Travis Bot

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

Paul Armstrong paularmstrong merged commit 05e2d32 into from
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
2  lib/tags/for.js
View
@@ -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.