diff options
author | dercodercom <andy@dercoder.com> | 2018-01-20 19:58:25 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2018-10-29 16:01:03 +0300 |
commit | a282c22fc7bfc41d58466891b7e5a4e4a4ad977c (patch) | |
tree | 5483e7be09697bb2c2eeae0791b15e98b7a39506 /js | |
parent | fff9e17d7e5307a695c4459402342774e7d70e36 (diff) |
Update tab.js
I'm using Tab.js with remove function and get an error "TypeError: container is undefined [more info]", with this check the error is fixed.
Diffstat (limited to 'js')
-rw-r--r-- | js/src/tab.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tab.js b/js/src/tab.js index af296f74fe..7333f22a1f 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -142,7 +142,7 @@ class Tab { _activate(element, container, callback) { let activeElements - if (container.nodeName === 'UL') { + if (container && container.nodeName === 'UL') { activeElements = $(container).find(Selector.ACTIVE_UL) } else { activeElements = $(container).children(Selector.ACTIVE) |