]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
dropdown.js: Use more straightforward phrasing for index lower bound check 18393/head
authorChris Rebert <code@chrisrebert.com>
Tue, 1 Dec 2015 07:59:37 +0000 (23:59 -0800)
committerChris Rebert <code@chrisrebert.com>
Tue, 1 Dec 2015 07:59:39 +0000 (23:59 -0800)
[skip sauce]
[skip validator]

js/src/dropdown.js

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