mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
remove duplicated Selector.find
This commit is contained in:
+1
-4
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user