Skip to content

Commit

Permalink
Fixes mozilla-mobile#4065: Variable i gets reset to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
colintheshots committed Jan 8, 2019
1 parent 472eafa commit c789362
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
// so by moving towards the start we'll always process all previously unprocessed items -
// moving in the other direction we'd need to remember to process a given index
// again which is more complicated).
" for (i = nRules - 1; i >= 0; i--) {" +
" for (let i = nRules - 1; i >= 0; i--) {" +
" var cssRule = stylesheet.cssRules[i];" +
// Depending on style type, there might be no selector
" if (cssRule.selectorText && cssRule.selectorText.includes(':visited')) {" +
Expand Down

0 comments on commit c789362

Please sign in to comment.