]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Tooltip: remove extraneous call to _getConfig() (#35540)
authorGeoSot <geo.sotis@gmail.com>
Wed, 15 Dec 2021 08:47:32 +0000 (10:47 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 08:47:32 +0000 (10:47 +0200)
BaseClass already initializes the config

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/tooltip.js

index 9c8e54c66b2d41c2597104a95156cb1ceeaa0876..94c3935bd953fa5646ac7eb26cf2878ad572b342 100644 (file)
@@ -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()