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:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2018-02-21 11:01:02 +0300
committerJohann-S <johann.servoire@gmail.com>2018-02-21 11:01:02 +0300
commit8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac (patch)
tree20def81d65fa792c478db7cf6814977d52b3078b /js/src/dropdown.js
parent99379f3843ddd5bd66ce6559ab91ef68c744fbd7 (diff)
Consistent usage of $(document.body) instead of $('body') (#25671)
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index b877017f2b..2f69298540 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -183,7 +183,7 @@ const Dropdown = (($) => {
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement &&
$(parent).closest(Selector.NAVBAR_NAV).length === 0) {
- $('body').children().on('mouseover', null, $.noop)
+ $(document.body).children().on('mouseover', null, $.noop)
}
this._element.focus()
@@ -365,7 +365,7 @@ const Dropdown = (($) => {
// 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)
}
toggles[i].setAttribute('aria-expanded', 'false')