From f457c41dd481a20c17e985bb79e7fdd4e3503ca9 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 17 May 2014 08:00:21 +0200 Subject: [PATCH] Declare the |j| variable before use in lib/utils/arrays.js Until now it was inadvertently global. --- lib/utils/arrays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/arrays.js b/lib/utils/arrays.js index 45b320a..013ed40 100644 --- a/lib/utils/arrays.js +++ b/lib/utils/arrays.js @@ -3,7 +3,7 @@ var arrays = { range: function(start, stop) { var length = stop - start, result = new Array(length), - i; + i, j; for (i = 0, j = start; i < length; i++, j++) { result[i] = j;