Skip to content

Commit

Permalink
removing unnecessary loop.cycle reset
Browse files Browse the repository at this point in the history
  • Loading branch information
paularmstrong committed Apr 1, 2012
1 parent 583df10 commit fdcc8db
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/tags/for.js
Expand Up @@ -40,7 +40,6 @@ module.exports = function (indent, parentBlock, parser) {
out = '(function () {\n' +
' var loop = {}, __loopKey, __loopIndex = 0, __loopLength = 0,' +
' __ctx_operand = _context["' + operand1 + '"],\n' +
' __ctx_cycle = (typeof loop_cycle !== "undefined") ? loop_cycle : null,\n' +
' loop_cycle = function() {\n' +
' var args = _.toArray(arguments), i = loop.index0 % args.length;\n' +
' return args[i];\n' +
Expand All @@ -65,7 +64,6 @@ module.exports = function (indent, parentBlock, parser) {
loopShared +
' }\n' +
' }\n' +
' loop_cycle = __ctx_cycle;\n' +
' _context["' + operand1 + '"] = __ctx_operand;\n' +
'})();\n';

Expand Down

0 comments on commit fdcc8db

Please sign in to comment.