diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2021-05-06 14:01:08 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2021-05-06 14:01:08 +0300 |
commit | 73ff03814293da40780b7a858f5f853bc4494280 (patch) | |
tree | c7d685226af0267512ef778dceb6beca7ed9791e /assets/javascripts/bootstrap/tooltip.js | |
parent | 5be8a01c0c28c5631ad0062ab121e5816466117f (diff) |
Update to v5.0.0v5.0.0
1. Updater: Add `util/backdrop.js` to the list of inlined srcs.
2. `bundle exec rake 'update[v5.0.0]'
3. Update version numbers.
4. Bump minimum Popper version from 2.9.1 to 2.9.2
Diffstat (limited to 'assets/javascripts/bootstrap/tooltip.js')
-rw-r--r-- | assets/javascripts/bootstrap/tooltip.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/assets/javascripts/bootstrap/tooltip.js b/assets/javascripts/bootstrap/tooltip.js index 5e27599..74c8b0b 100644 --- a/assets/javascripts/bootstrap/tooltip.js +++ b/assets/javascripts/bootstrap/tooltip.js @@ -1,5 +1,5 @@ /*! - * Bootstrap tooltip.js v5.0.0-beta3 (https://getbootstrap.com/) + * Bootstrap tooltip.js v5.0.0 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -40,7 +40,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.0.0-beta3): util/index.js + * Bootstrap (v5.0.0): util/index.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -124,7 +124,7 @@ const valueType = value && isElement(value) ? 'element' : toType(value); if (!new RegExp(expectedTypes).test(valueType)) { - throw new TypeError(`${componentName.toUpperCase()}: ` + `Option "${property}" provided type "${valueType}" ` + `but expected type "${expectedTypes}".`); + throw new TypeError(`${componentName.toUpperCase()}: Option "${property}" provided type "${valueType}" but expected type "${expectedTypes}".`); } }); }; @@ -152,7 +152,7 @@ return findShadowRoot(element.parentNode); }; - const noop = () => function () {}; + const noop = () => {}; const getjQuery = () => { const { @@ -196,7 +196,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.0.0-beta3): util/sanitizer.js + * Bootstrap (v5.0.0): util/sanitizer.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -309,7 +309,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.0.0-beta3): tooltip.js + * Bootstrap (v5.0.0): tooltip.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -484,7 +484,6 @@ dispose() { clearTimeout(this._timeout); - EventHandler__default['default'].off(this._element, this.constructor.EVENT_KEY); EventHandler__default['default'].off(this._element.closest(`.${CLASS_NAME_MODAL}`), 'hide.bs.modal', this._hideModalHandler); if (this.tip && this.tip.parentNode) { @@ -569,7 +568,7 @@ if ('ontouchstart' in document.documentElement) { [].concat(...document.body.children).forEach(element => { - EventHandler__default['default'].on(element, 'mouseover', noop()); + EventHandler__default['default'].on(element, 'mouseover', noop); }); } @@ -768,7 +767,6 @@ modifiers: [{ name: 'flip', options: { - altBoundary: true, fallbackPlacements: this.config.fallbackPlacements } }, { |