1
0
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:
GeoSot 2021-06-10 02:41:30 +03:00 committed by XhmikosR
parent 7a71703fd3
commit 4c1f7bb051

View File

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