diff options
| author | GeoSot <[email protected]> | 2021-11-25 19:39:13 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-25 19:39:13 +0200 |
| commit | 374eeecfbcabae20da08ce00d0f9268bb67b1e5e (patch) | |
| tree | 7917e6bd3816dfb8872c54d0db8e5fffedde04d1 /js/src | |
| parent | 91ad255e07d3d16f2ea88ca5b49bbe569ea5e2b4 (diff) | |
| download | bootstrap-374eeecfbcabae20da08ce00d0f9268bb67b1e5e.tar.xz bootstrap-374eeecfbcabae20da08ce00d0f9268bb67b1e5e.zip | |
tooltip.js: use array.includes instead of for iteration (#35127)
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/tooltip.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index c84596101..bc59e6e94 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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) { |
