mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-19 05:50:23 +00:00
tooltip.js: use array.includes instead of for iteration (#35127)
This commit is contained in:
parent
91ad255e07
commit
374eeecfbc
1 changed files with 1 additions and 7 deletions
|
|
@ -598,13 +598,7 @@ class Tooltip extends BaseComponent {
|
|||
}
|
||||
|
||||
_isWithActiveTrigger() {
|
||||
for (const trigger in this._activeTrigger) {
|
||||
if (this._activeTrigger[trigger]) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
return Object.values(this._activeTrigger).includes(true)
|
||||
}
|
||||
|
||||
_getConfig(config) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue