]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix error in condition in Tab plugin 15630/head
authorChris Rebert <code@rebertia.com>
Wed, 21 Jan 2015 22:13:26 +0000 (14:13 -0800)
committerChris Rebert <code@rebertia.com>
Wed, 21 Jan 2015 22:13:26 +0000 (14:13 -0800)
Refs #15186

js/tab.js

index ddb7fc9c4fe757c57c0f45720d296750bb860689..311a01f10beb8514049358daea4c98e991dc1542 100644 (file)
--- a/js/tab.js
+++ b/js/tab.js
@@ -88,7 +88,7 @@
         element.removeClass('fade')
       }
 
-      if (element.parent('.dropdown-menu')) {
+      if (element.parent('.dropdown-menu').length) {
         element
           .closest('li.dropdown')
             .addClass('active')