aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/js/dist/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/twbs/bootstrap/js/dist/util.js')
-rw-r--r--vendor/twbs/bootstrap/js/dist/util.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/vendor/twbs/bootstrap/js/dist/util.js b/vendor/twbs/bootstrap/js/dist/util.js
index 841704f8a..e3b5c1180 100644
--- a/vendor/twbs/bootstrap/js/dist/util.js
+++ b/vendor/twbs/bootstrap/js/dist/util.js
@@ -1,5 +1,5 @@
/*!
- * Bootstrap util.js v4.5.2 (https://getbootstrap.com/)
+ * Bootstrap util.js v4.5.3 (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)
*/
@@ -9,11 +9,13 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
}(this, (function ($) { 'use strict';
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
+
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
/**
* --------------------------------------------------------------------------
- * Bootstrap (v4.5.2): util.js
+ * Bootstrap (v4.5.3): util.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -40,7 +42,7 @@
bindType: TRANSITION_END,
delegateType: TRANSITION_END,
handle: function handle(event) {
- if ($(event.target).is(this)) {
+ if ($__default['default'](event.target).is(this)) {
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
}
@@ -53,7 +55,7 @@
var _this = this;
var called = false;
- $(this).one(Util.TRANSITION_END, function () {
+ $__default['default'](this).one(Util.TRANSITION_END, function () {
called = true;
});
setTimeout(function () {
@@ -65,8 +67,8 @@
}
function setTransitionEndSupport() {
- $.fn.emulateTransitionEnd = transitionEndEmulator;
- $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
+ $__default['default'].fn.emulateTransitionEnd = transitionEndEmulator;
+ $__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
}
/**
* --------------------------------------------------------------------------
@@ -79,7 +81,6 @@
TRANSITION_END: 'bsTransitionEnd',
getUID: function getUID(prefix) {
do {
- // eslint-disable-next-line no-bitwise
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
} while (document.getElementById(prefix));
@@ -95,7 +96,7 @@
try {
return document.querySelector(selector) ? selector : null;
- } catch (err) {
+ } catch (_) {
return null;
}
},
@@ -105,8 +106,8 @@
} // Get transition-duration of the element
- var transitionDuration = $(element).css('transition-duration');
- var transitionDelay = $(element).css('transition-delay');
+ var transitionDuration = $__default['default'](element).css('transition-duration');
+ var transitionDelay = $__default['default'](element).css('transition-delay');
var floatTransitionDuration = parseFloat(transitionDuration);
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
@@ -123,9 +124,8 @@
return element.offsetHeight;
},
triggerTransitionEnd: function triggerTransitionEnd(element) {
- $(element).trigger(TRANSITION_END);
+ $__default['default'](element).trigger(TRANSITION_END);
},
- // TODO: Remove in v5
supportsTransitionEnd: function supportsTransitionEnd() {
return Boolean(TRANSITION_END);
},
@@ -168,11 +168,11 @@
return Util.findShadowRoot(element.parentNode);
},
jQueryDetection: function jQueryDetection() {
- if (typeof $ === 'undefined') {
+ if (typeof $__default['default'] === 'undefined') {
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
}
- var version = $.fn.jquery.split(' ')[0].split('.');
+ var version = $__default['default'].fn.jquery.split(' ')[0].split('.');
var minMajor = 1;
var ltMajor = 2;
var minMinor = 9;