Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-11-26 02:00:23 +0300
committerMark Otto <markdotto@gmail.com>2016-11-26 02:00:23 +0300
commit49be9bc63af9391721287c189bf2f9150aad15bc (patch)
tree255d689d20f0246a18ddf3070ce1a5c2b0cea09d /js/dist/tab.js
parent432fe74c3182f3be258320fec31b0a8c5d70848d (diff)
grunt
Diffstat (limited to 'js/dist/tab.js')
-rw-r--r--js/dist/tab.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/dist/tab.js b/js/dist/tab.js
index a504cb32ed..2859987341 100644
--- a/js/dist/tab.js
+++ b/js/dist/tab.js
@@ -163,7 +163,7 @@ var Tab = function ($) {
if (active) {
$(active).removeClass(ClassName.ACTIVE);
- var dropdownChild = $(active).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
+ var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
if (dropdownChild) {
$(dropdownChild).removeClass(ClassName.ACTIVE);
@@ -205,7 +205,7 @@ var Tab = function ($) {
var data = $this.data(DATA_KEY);
if (!data) {
- data = data = new Tab(this);
+ data = new Tab(this);
$this.data(DATA_KEY, data);
}