From 426e8e12cdbbfd6080d0a861b456538c0c123d4b Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 21 Jan 2015 14:13:26 -0800 Subject: [PATCH] Fix error in condition in Tab plugin Refs #15186 --- js/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')