1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 21:39:08 +02:00

Consistent usage of $(document.body) instead of $('body') (#25671)

This commit is contained in:
Martijn Cuppens
2018-02-21 09:01:02 +01:00
committed by Johann-S
parent 99379f3843
commit 8cfbf6933b
3 changed files with 8 additions and 8 deletions

View File

@@ -317,7 +317,7 @@ const 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) {
$('body').children().on('mouseover', null, $.noop)
$(document.body).children().on('mouseover', null, $.noop)
}
const complete = () => {
@@ -375,7 +375,7 @@ const 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) {
$('body').children().off('mouseover', null, $.noop)
$(document.body).children().off('mouseover', null, $.noop)
}
this._activeTrigger[Trigger.CLICK] = false