1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +02:00
This commit is contained in:
Mark Otto
2017-04-21 23:58:09 -07:00
parent 638b97f19c
commit ba312c20a5
28 changed files with 155 additions and 47 deletions

6
js/dist/dropdown.js vendored
View File

@@ -104,7 +104,7 @@ var Dropdown = function ($) {
// 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 && !$(parent).closest(Selector.NAVBAR_NAV).length) {
$('body').children().on('mouseover', '*', $.noop);
$('body').children().on('mouseover', null, $.noop);
}
this.focus();
@@ -178,7 +178,7 @@ var Dropdown = function ($) {
// 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', '*', $.noop);
$('body').children().off('mouseover', null, $.noop);
}
toggles[i].setAttribute('aria-expanded', 'false');
@@ -284,4 +284,4 @@ var Dropdown = function ($) {
return Dropdown;
}(jQuery);
//# sourceMappingURL=dropdown.js.map
//# sourceMappingURL=dropdown.js.map