mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
tooltip.js: use a loop
This commit is contained in:
+4
-3
@@ -286,9 +286,10 @@ class Tooltip extends BaseComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this._activeTrigger[TRIGGER_CLICK] = false
|
for (const trigger of [TRIGGER_CLICK, TRIGGER_FOCUS, TRIGGER_HOVER]) {
|
||||||
this._activeTrigger[TRIGGER_FOCUS] = false
|
this._activeTrigger[trigger] = false
|
||||||
this._activeTrigger[TRIGGER_HOVER] = false
|
}
|
||||||
|
|
||||||
this._isHovered = false
|
this._isHovered = false
|
||||||
|
|
||||||
const complete = () => {
|
const complete = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user