From: Chris Rebert Date: Tue, 1 Dec 2015 07:59:37 +0000 (-0800) Subject: dropdown.js: Use more straightforward phrasing for index lower bound check X-Git-Tag: v4.0.0-alpha.3~467^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ca64232d76fdab09db00fc170b4e141d88c668;p=thirdparty%2Fbootstrap.git dropdown.js: Use more straightforward phrasing for index lower bound check [skip sauce] [skip validator] --- diff --git a/js/src/dropdown.js b/js/src/dropdown.js index f947d2aa11..0d06af5b51 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -250,7 +250,7 @@ const Dropdown = (($) => { index++ } - if (!~index) { + if (index < 0) { index = 0 }