1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 06:03:10 +02:00

Enable unicorn/no-for-loop rule

This commit is contained in:
XhmikosR
2021-08-10 18:07:39 +03:00
parent 9f1579aa04
commit 2b4d0d166b
6 changed files with 15 additions and 20 deletions

View File

@@ -377,8 +377,8 @@ class Dropdown extends BaseComponent {
const toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE)
for (let i = 0, len = toggles.length; i < len; i++) {
const context = Dropdown.getInstance(toggles[i])
for (const toggle of toggles) {
const context = Dropdown.getInstance(toggle)
if (!context || context._config.autoClose === false) {
continue
}