diff options
| author | XhmikosR <[email protected]> | 2022-11-13 09:19:11 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-13 09:19:11 +0200 |
| commit | 2fde88c20071f1e766703f78a25ebc431da9e1d8 (patch) | |
| tree | 93d22528446f6f0f25aafbe66da421900ad7d9ae /js/src/tooltip.js | |
| parent | 0446e22b5aa556701f32015e9678f4ae822d1386 (diff) | |
| download | bootstrap-2fde88c20071f1e766703f78a25ebc431da9e1d8.tar.xz bootstrap-2fde88c20071f1e766703f78a25ebc431da9e1d8.zip | |
Use `Object.entries` in more places (#37482)
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 02d11363a..562b52db0 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -577,9 +577,9 @@ class Tooltip extends BaseComponent { _getDelegateConfig() { const config = {} - for (const key in this._config) { - if (this.constructor.Default[key] !== this._config[key]) { - config[key] = this._config[key] + for (const [key, value] of Object.entries(this._config)) { + if (this.constructor.Default[key] !== value) { + config[key] = value } } |
