mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +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._pointerEvent = Boolean(window.PointerEvent)
|
||||||
|
|
||||||
this._addEventListeners()
|
this._addEventListeners()
|
||||||
Data.setData(element, DATA_KEY, this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -101,8 +101,6 @@ class Collapse extends BaseComponent {
|
|||||||
if (this._config.toggle) {
|
if (this._config.toggle) {
|
||||||
this.toggle()
|
this.toggle()
|
||||||
}
|
}
|
||||||
|
|
||||||
Data.setData(element, DATA_KEY, this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -106,7 +106,6 @@ class Dropdown extends BaseComponent {
|
|||||||
this._inNavbar = this._detectNavbar()
|
this._inNavbar = this._detectNavbar()
|
||||||
|
|
||||||
this._addEventListeners()
|
this._addEventListeners()
|
||||||
Data.setData(element, DATA_KEY, this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -93,7 +93,6 @@ class Modal extends BaseComponent {
|
|||||||
this._ignoreBackdropClick = false
|
this._ignoreBackdropClick = false
|
||||||
this._isTransitioning = false
|
this._isTransitioning = false
|
||||||
this._scrollbarWidth = 0
|
this._scrollbarWidth = 0
|
||||||
Data.setData(element, DATA_KEY, this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -81,8 +81,6 @@ class ScrollSpy extends BaseComponent {
|
|||||||
|
|
||||||
this.refresh()
|
this.refresh()
|
||||||
this._process()
|
this._process()
|
||||||
|
|
||||||
Data.setData(element, DATA_KEY, this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -67,7 +67,6 @@ class Toast extends BaseComponent {
|
|||||||
this._config = this._getConfig(config)
|
this._config = this._getConfig(config)
|
||||||
this._timeout = null
|
this._timeout = null
|
||||||
this._setListeners()
|
this._setListeners()
|
||||||
Data.setData(element, DATA_KEY, this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -144,7 +144,6 @@ class Tooltip extends BaseComponent {
|
|||||||
this.tip = null
|
this.tip = null
|
||||||
|
|
||||||
this._setListeners()
|
this._setListeners()
|
||||||
Data.setData(element, this.constructor.DATA_KEY, this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
Loading…
Reference in New Issue
Block a user