diff options
| author | Johann-S <[email protected]> | 2020-03-25 15:35:02 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-25 16:35:02 +0200 |
| commit | 26d86fce2a10f5c9e295b0acf5e6381ff21368b4 (patch) | |
| tree | 63ed06cb159ad7b625aa6b4c8d7460a1a269db43 /js/src/tab.js | |
| parent | 98c45986962f8ab16bc630722e96dbfb048079b3 (diff) | |
| download | bootstrap-26d86fce2a10f5c9e295b0acf5e6381ff21368b4.tar.xz bootstrap-26d86fce2a10f5c9e295b0acf5e6381ff21368b4.zip | |
fix: remove make array util function (#30430)
Diffstat (limited to 'js/src/tab.js')
| -rw-r--r-- | js/src/tab.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/tab.js b/js/src/tab.js index f7ec29946..29985872c 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -11,7 +11,6 @@ import { emulateTransitionEnd, getElementFromSelector, getTransitionDurationFromElement, - makeArray, reflow } from './util/index' import Data from './dom/data' @@ -85,7 +84,7 @@ class Tab { if (listElement) { const itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE - previous = makeArray(SelectorEngine.find(itemSelector, listElement)) + previous = SelectorEngine.find(itemSelector, listElement) previous = previous[previous.length - 1] } @@ -190,7 +189,7 @@ class Tab { const dropdownElement = SelectorEngine.closest(element, SELECTOR_DROPDOWN) if (dropdownElement) { - makeArray(SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE)) + SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE) .forEach(dropdown => dropdown.classList.add(CLASS_NAME_ACTIVE)) } |
