diff options
| author | Martijn Cuppens <[email protected]> | 2018-02-21 09:01:02 +0100 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2018-02-21 09:01:02 +0100 |
| commit | 8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac (patch) | |
| tree | 20def81d65fa792c478db7cf6814977d52b3078b /js/src/tooltip.js | |
| parent | 99379f3843ddd5bd66ce6559ab91ef68c744fbd7 (diff) | |
| download | bootstrap-8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac.tar.xz bootstrap-8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac.zip | |
Consistent usage of $(document.body) instead of $('body') (#25671)
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 65d9c2201..861f45a86 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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 |
