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:
authorJohann-S <johann.servoire@gmail.com>2020-03-25 17:35:02 +0300
committerGitHub <noreply@github.com>2020-03-25 17:35:02 +0300
commit26d86fce2a10f5c9e295b0acf5e6381ff21368b4 (patch)
tree63ed06cb159ad7b625aa6b4c8d7460a1a269db43 /js/src/carousel.js
parent98c45986962f8ab16bc630722e96dbfb048079b3 (diff)
fix: remove make array util function (#30430)
Diffstat (limited to 'js/src/carousel.js')
-rw-r--r--js/src/carousel.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js
index 7230d5aaf7..509f7ca9d8 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -12,7 +12,6 @@ import {
getElementFromSelector,
getTransitionDurationFromElement,
isVisible,
- makeArray,
reflow,
triggerTransitionEnd,
typeCheckConfig
@@ -322,7 +321,7 @@ class Carousel {
}
}
- makeArray(SelectorEngine.find(SELECTOR_ITEM_IMG, this._element)).forEach(itemImg => {
+ SelectorEngine.find(SELECTOR_ITEM_IMG, this._element).forEach(itemImg => {
EventHandler.on(itemImg, EVENT_DRAG_START, e => e.preventDefault())
})
@@ -358,7 +357,7 @@ class Carousel {
_getItemIndex(element) {
this._items = element && element.parentNode ?
- makeArray(SelectorEngine.find(SELECTOR_ITEM, element.parentNode)) :
+ SelectorEngine.find(SELECTOR_ITEM, element.parentNode) :
[]
return this._items.indexOf(element)
@@ -601,7 +600,8 @@ EventHandler
.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, Carousel.dataApiClickHandler)
EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
- const carousels = makeArray(SelectorEngine.find(SELECTOR_DATA_RIDE))
+ const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE)
+
for (let i = 0, len = carousels.length; i < len; i++) {
Carousel.carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY))
}