Merge pull request #18393 from twbs/dropdown-bitwise-less-tricksy

dropdown.js: Use more straightforward phrasing for index bound check
This commit is contained in:
Chris Rebert 2015-12-24 08:16:19 -07:00
commit 74f1d3b9b8
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ const Dropdown = (($) => {
index++
}
if (!~index) {
if (index < 0) {
index = 0
}