diff options
| author | Chris Rebert <[email protected]> | 2015-12-24 08:16:19 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-12-24 08:16:19 -0700 |
| commit | 74f1d3b9b822359a16a6a06a095dfe1a4115eb96 (patch) | |
| tree | cffacebbf8d46f13d85247460c3012d481bcd7a8 /js/src | |
| parent | d30310feae9129c35136fb91c7fc8bdf95fea47d (diff) | |
| parent | 31ca64232d76fdab09db00fc170b4e141d88c668 (diff) | |
| download | bootstrap-74f1d3b9b822359a16a6a06a095dfe1a4115eb96.tar.xz bootstrap-74f1d3b9b822359a16a6a06a095dfe1a4115eb96.zip | |
Merge pull request #18393 from twbs/dropdown-bitwise-less-tricksy
dropdown.js: Use more straightforward phrasing for index bound check
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index d4a1e001a..92f841bc4 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 } |
