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:
+4
-3
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user