diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-11-11 20:07:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 20:07:37 +0300 |
commit | 384eccbfaf3f234944f8d60ac70dd7966814c994 (patch) | |
tree | 6c05c77c6e4dda8915c0ae701e6e3361dbd41559 /js/dist/dom/event-handler.js | |
parent | 7ad8967367dcd6ebccb9569096ebec0f627e35ac (diff) |
Prepare v5.0.0-alpha3 (#32122)v5.0.0-alpha3
Diffstat (limited to 'js/dist/dom/event-handler.js')
-rw-r--r-- | js/dist/dom/event-handler.js | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/js/dist/dom/event-handler.js b/js/dist/dom/event-handler.js index e4f3bd774c..9821affff5 100644 --- a/js/dist/dom/event-handler.js +++ b/js/dist/dom/event-handler.js @@ -1,17 +1,17 @@ /*! - * Bootstrap event-handler.js v5.0.0-alpha2 (https://getbootstrap.com/) + * Bootstrap event-handler.js v5.0.0-alpha3 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./polyfill.js')) : - typeof define === 'function' && define.amd ? define(['./polyfill.js'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EventHandler = factory(global.Polyfill)); -}(this, (function (polyfill_js) { 'use strict'; + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EventHandler = factory()); +}(this, (function () { 'use strict'; /** * -------------------------------------------------------------------------- - * Bootstrap (v5.0.0-alpha2): util/index.js + * Bootstrap (v5.0.0-alpha3): util/index.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -29,7 +29,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.0.0-alpha2): dom/event-handler.js + * Bootstrap (v5.0.0-alpha3): dom/event-handler.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -39,7 +39,6 @@ * ------------------------------------------------------------------------ */ - var $ = getjQuery(); var namespaceRegex = /[^.]*(?=\..*)\.|.*/; var stripNameRegex = /\..*/; var stripUidRegex = /::\d+$/; @@ -248,6 +247,7 @@ return null; } + var $ = getjQuery(); var typeEvent = event.replace(stripNameRegex, ''); var inNamespace = event !== typeEvent; var isNative = nativeEvents.indexOf(typeEvent) > -1; @@ -288,14 +288,6 @@ if (defaultPrevented) { evt.preventDefault(); - - if (!polyfill_js.defaultPreventedPreservedOnDispatch) { - Object.defineProperty(evt, 'defaultPrevented', { - get: function get() { - return true; - } - }); - } } if (nativeDispatch) { |