aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2020-03-25 15:35:02 +0100
committerGitHub <[email protected]>2020-03-25 16:35:02 +0200
commit26d86fce2a10f5c9e295b0acf5e6381ff21368b4 (patch)
tree63ed06cb159ad7b625aa6b4c8d7460a1a269db43 /js/src/tooltip.js
parent98c45986962f8ab16bc630722e96dbfb048079b3 (diff)
downloadbootstrap-26d86fce2a10f5c9e295b0acf5e6381ff21368b4.tar.xz
bootstrap-26d86fce2a10f5c9e295b0acf5e6381ff21368b4.zip
fix: remove make array util function (#30430)
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index b723b1ba8..c493b15ee 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -13,7 +13,6 @@ import {
getTransitionDurationFromElement,
getUID,
isElement,
- makeArray,
noop,
typeCheckConfig
} from './util/index'
@@ -301,7 +300,7 @@ class Tooltip {
// only needed because of broken event delegation on iOS
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement) {
- makeArray(document.body.children).forEach(element => {
+ [].concat(...document.body.children).forEach(element => {
EventHandler.on(element, 'mouseover', noop())
})
}
@@ -354,7 +353,7 @@ class Tooltip {
// If this is a touch-enabled device we remove the extra
// empty mouseover listeners we added for iOS support
if ('ontouchstart' in document.documentElement) {
- makeArray(document.body.children)
+ [].concat(...document.body.children)
.forEach(element => EventHandler.off(element, 'mouseover', noop))
}