mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-25 04:12:55 +01:00
remove duplicated Selector.find
This commit is contained in:
parent
7a71703fd3
commit
4c1f7bb051
@ -70,10 +70,7 @@ class Collapse extends BaseComponent {
|
|||||||
|
|
||||||
this._isTransitioning = false
|
this._isTransitioning = false
|
||||||
this._config = this._getConfig(config)
|
this._config = this._getConfig(config)
|
||||||
this._triggerArray = SelectorEngine.find(
|
this._triggerArray = []
|
||||||
`${SELECTOR_DATA_TOGGLE}[href="#${this._element.id}"],` +
|
|
||||||
`${SELECTOR_DATA_TOGGLE}[data-bs-target="#${this._element.id}"]`
|
|
||||||
)
|
|
||||||
|
|
||||||
const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE)
|
const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user