From: Štefan Baebler Date: Tue, 20 Mar 2018 00:52:54 +0000 (+0100) Subject: Fix warning: 'value', 'index' is defined but never used. X-Git-Tag: live~2494^2~5 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/26b47fdd188d126bef2e5829d5cc460bad530e2a?hp=15ea756ae655d1ea009efa22a87155136c30fee3 Fix warning: 'value', 'index' is defined but never used. --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 138554888..4a8d8d917 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -335,7 +335,7 @@ $(document).ready(function () { } }); - $('.colour-preview-box').each(function (index, value) { + $('.colour-preview-box').each(function () { $(this).css("background-color", $(this).data("colour")); }); }