From f41e1e63990b3b12654541374a0930c1fbff1adf Mon Sep 17 00:00:00 2001 From: guns Date: Thu, 9 Aug 2012 07:31:12 -0500 Subject: Fix regression in shuffleHints() Index variable `i` accidentally undeclared in `for in` loop cf. ed21d9b1abe42c1556f27390476302a1393dedb8 --- content_scripts/link_hints.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 361b5c74..34ecb431 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -301,7 +301,7 @@ alphabetHints = # shuffleHints: (hints, characterSetLength) -> buckets = ([] for i in [0...characterSetLength] by 1) - for hint in hints + for hint, i in hints buckets[i % buckets.length].push(hint) result = [] for bucket in buckets -- cgit v1.2.3