From c1d56a651bb401b237a65c1f28147dfa107025fa Mon Sep 17 00:00:00 2001 From: Imran Hussain <imranh@sucs.org> Date: Mon, 9 Nov 2015 14:57:24 +0000 Subject: [PATCH] Make jshint stop complaining --- htdocs/js/cb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/js/cb.js b/htdocs/js/cb.js index bf90b73..d36e4d3 100644 --- a/htdocs/js/cb.js +++ b/htdocs/js/cb.js @@ -55,9 +55,9 @@ function initCB() { } // Loop through the found div elements var thediv, outer, i1, i2; - for (var i = 0; i < cbDivs.length; i++) { + for (var j = 0; j < cbDivs.length; j++) { // Save the original outer div for later - thediv = cbDivs[i]; + thediv = cbDivs[j]; // Create a new div, give it the original div's class attribute, and replace 'cbb' with 'cb' outer = createElement('div'); outer.className = thediv.className; -- GitLab