2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03:00

tooltip.js: use a loop

This commit is contained in:
XhmikosR
2021-10-09 22:28:20 +03:00
parent d19c635f16
commit 449d4f6813
+4 -3
View File
@@ -286,9 +286,10 @@ class Tooltip extends BaseComponent {
}
}
this._activeTrigger[TRIGGER_CLICK] = false
this._activeTrigger[TRIGGER_FOCUS] = false
this._activeTrigger[TRIGGER_HOVER] = false
for (const trigger of [TRIGGER_CLICK, TRIGGER_FOCUS, TRIGGER_HOVER]) {
this._activeTrigger[trigger] = false
}
this._isHovered = false
const complete = () => {