mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
tooltip.js: use array.includes instead of for iteration (#35127)
This commit is contained in:
+1
-7
@@ -598,13 +598,7 @@ class Tooltip extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_isWithActiveTrigger() {
|
_isWithActiveTrigger() {
|
||||||
for (const trigger in this._activeTrigger) {
|
return Object.values(this._activeTrigger).includes(true)
|
||||||
if (this._activeTrigger[trigger]) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_getConfig(config) {
|
_getConfig(config) {
|
||||||
|
|||||||
Reference in New Issue
Block a user