From: Matthias Schmidt Date: Sun, 22 May 2016 13:50:52 +0000 (+0200) Subject: Fix name of iteration variable in nested loop in Date/Picker.js X-Git-Tag: 3.0.0_Beta_1~1675 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=322396a900b9dc06d97a11c661dff55da58e28c3;p=GitHub%2FWoltLab%2FWCF.git Fix name of iteration variable in nested loop in Date/Picker.js --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js b/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js index 1ea7f363b5..90006103fe 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js @@ -116,8 +116,8 @@ define(['DateUtil', 'Language', 'ObjectMap', 'Dom/ChangeListener', 'Ui/Alignment // check if the date input has one of the following classes set otherwise default to 'short' var hasClass = false, knownClasses = ['tiny', 'short', 'medium', 'long']; - for (var i = 0; i < 4; i++) { - if (element.classList.contains(knownClasses[i])) { + for (var j = 0; j < 4; j++) { + if (element.classList.contains(knownClasses[j])) { hasClass = true; } }