From: Chris Rebert Date: Wed, 21 Jan 2015 22:13:26 +0000 (-0800) Subject: Fix error in condition in Tab plugin X-Git-Tag: v3.3.4~160^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=426e8e12cdbbfd6080d0a861b456538c0c123d4b;p=thirdparty%2Fbootstrap.git Fix error in condition in Tab plugin Refs #15186 --- diff --git a/js/tab.js b/js/tab.js index ddb7fc9c4f..311a01f10b 100644 --- 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')