1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 13:29:06 +02:00

Use cached noop function everywhere

This commit is contained in:
Rohit Sharma
2021-03-27 21:38:45 +05:30
committed by XhmikosR
parent 7b7f4a5ced
commit b2bc159d72
4 changed files with 7 additions and 7 deletions

View File

@@ -301,7 +301,7 @@ class Tooltip extends BaseComponent {
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement) {
[].concat(...document.body.children).forEach(element => {
EventHandler.on(element, 'mouseover', noop())
EventHandler.on(element, 'mouseover', noop)
})
}