0
0
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:
Rohit Sharma 2020-11-29 23:18:00 +05:30 committed by XhmikosR
parent 4999c3dbbc
commit 04674f88b0
7 changed files with 0 additions and 9 deletions

View File

@ -123,7 +123,6 @@ class Carousel extends BaseComponent {
this._pointerEvent = Boolean(window.PointerEvent)
this._addEventListeners()
Data.setData(element, DATA_KEY, this)
}
// Getters

View File

@ -101,8 +101,6 @@ class Collapse extends BaseComponent {
if (this._config.toggle) {
this.toggle()
}
Data.setData(element, DATA_KEY, this)
}
// Getters

View File

@ -106,7 +106,6 @@ class Dropdown extends BaseComponent {
this._inNavbar = this._detectNavbar()
this._addEventListeners()
Data.setData(element, DATA_KEY, this)
}
// Getters

View File

@ -93,7 +93,6 @@ class Modal extends BaseComponent {
this._ignoreBackdropClick = false
this._isTransitioning = false
this._scrollbarWidth = 0
Data.setData(element, DATA_KEY, this)
}
// Getters

View File

@ -81,8 +81,6 @@ class ScrollSpy extends BaseComponent {
this.refresh()
this._process()
Data.setData(element, DATA_KEY, this)
}
// Getters

View File

@ -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

View File

@ -144,7 +144,6 @@ class Tooltip extends BaseComponent {
this.tip = null
this._setListeners()
Data.setData(element, this.constructor.DATA_KEY, this)
}
// Getters