From: GeoSot Date: Wed, 15 Dec 2021 08:47:32 +0000 (+0200) Subject: Tooltip: remove extraneous call to _getConfig() (#35540) X-Git-Tag: v5.2.0-beta1~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0960b08e030f8c4c0c838c1dd0c392209d51f92;p=thirdparty%2Fbootstrap.git Tooltip: remove extraneous call to _getConfig() (#35540) BaseClass already initializes the config Co-authored-by: XhmikosR --- diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 9c8e54c66b..94c3935bd9 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -117,7 +117,7 @@ class Tooltip extends BaseComponent { throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)') } - super(element) + super(element, config) // Private this._isEnabled = true @@ -128,7 +128,6 @@ class Tooltip extends BaseComponent { this._templateFactory = null // Protected - this._config = this._getConfig(config) this.tip = null this._setListeners()