diff options
| author | Jacob Thornton <[email protected]> | 2015-08-18 19:22:46 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2015-08-18 19:22:46 -0700 |
| commit | 18ff57a183ac141f70164be481ef703729bcdf0d (patch) | |
| tree | 89c7c9204089f1c960ac25a56ff6588f797b451d /js/src/tab.js | |
| parent | f1827e5f9c37e9a344a8f7dd8ed269e774e83fce (diff) | |
| download | bootstrap-18ff57a183ac141f70164be481ef703729bcdf0d.tar.xz bootstrap-18ff57a183ac141f70164be481ef703729bcdf0d.zip | |
js tests passing + eslint
Diffstat (limited to 'js/src/tab.js')
| -rw-r--r-- | js/src/tab.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tab.js b/js/src/tab.js index 4d8d7dec8..9d793417a 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -77,7 +77,7 @@ const Tab = (($) => { show() { if (this._element.parentNode && - (this._element.parentNode.nodeType == Node.ELEMENT_NODE) && + (this._element.parentNode.nodeType === Node.ELEMENT_NODE) && ($(this._element).parent().hasClass(ClassName.ACTIVE))) { return } @@ -157,7 +157,7 @@ const Tab = (($) => { let isTransitioning = callback && Util.supportsTransitionEnd() && ((active && $(active).hasClass(ClassName.FADE)) - || !!$(container).find(Selector.FADE_CHILD)[0]) + || Boolean($(container).find(Selector.FADE_CHILD)[0])) let complete = $.proxy( this._transitionComplete, |
