mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Remove setData from construtors (#32264)
This commit is contained in:
parent
4999c3dbbc
commit
04674f88b0
@ -123,7 +123,6 @@ class Carousel extends BaseComponent {
|
||||
this._pointerEvent = Boolean(window.PointerEvent)
|
||||
|
||||
this._addEventListeners()
|
||||
Data.setData(element, DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
@ -101,8 +101,6 @@ class Collapse extends BaseComponent {
|
||||
if (this._config.toggle) {
|
||||
this.toggle()
|
||||
}
|
||||
|
||||
Data.setData(element, DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
@ -106,7 +106,6 @@ class Dropdown extends BaseComponent {
|
||||
this._inNavbar = this._detectNavbar()
|
||||
|
||||
this._addEventListeners()
|
||||
Data.setData(element, DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
@ -93,7 +93,6 @@ class Modal extends BaseComponent {
|
||||
this._ignoreBackdropClick = false
|
||||
this._isTransitioning = false
|
||||
this._scrollbarWidth = 0
|
||||
Data.setData(element, DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
@ -81,8 +81,6 @@ class ScrollSpy extends BaseComponent {
|
||||
|
||||
this.refresh()
|
||||
this._process()
|
||||
|
||||
Data.setData(element, DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
@ -67,7 +67,6 @@ class Toast extends BaseComponent {
|
||||
this._config = this._getConfig(config)
|
||||
this._timeout = null
|
||||
this._setListeners()
|
||||
Data.setData(element, DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
@ -144,7 +144,6 @@ class Tooltip extends BaseComponent {
|
||||
this.tip = null
|
||||
|
||||
this._setListeners()
|
||||
Data.setData(element, this.constructor.DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
Loading…
Reference in New Issue
Block a user