1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Tooltip: remove extraneous call to _getConfig() (#35540)

BaseClass already initializes the config

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
GeoSot 2021-12-15 10:47:32 +02:00 committed by GitHub
parent d40fae456e
commit e0960b08e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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()