aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-11-30 23:59:37 -0800
committerChris Rebert <[email protected]>2015-11-30 23:59:39 -0800
commit31ca64232d76fdab09db00fc170b4e141d88c668 (patch)
tree4c145abf7bcaa58523f29239b9d6b9da4ed762ae /js
parent74ddd041b5f4f3d52ac87bcc573552b22e5774be (diff)
downloadbootstrap-31ca64232d76fdab09db00fc170b4e141d88c668.tar.xz
bootstrap-31ca64232d76fdab09db00fc170b4e141d88c668.zip
dropdown.js: Use more straightforward phrasing for index lower bound check
[skip sauce] [skip validator]
Diffstat (limited to 'js')
-rw-r--r--js/src/dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index f947d2aa1..0d06af5b5 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
}