1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-30 07:19:13 +02:00

Use Object.entries in more places (#37482)

This commit is contained in:
XhmikosR
2022-11-13 09:19:11 +02:00
committed by GitHub
parent 0446e22b5a
commit 2fde88c200
3 changed files with 6 additions and 9 deletions

View File

@@ -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
}
}