aboutsummaryrefslogtreecommitdiff
path: root/js/src/base-component.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-07-30 09:28:51 +0300
committerXhmikosR <[email protected]>2021-10-05 19:52:11 +0300
commit666fe596bf4629777f995dd79046b1db632ffdfb (patch)
tree9e14fcf9c5d325e668d75d2b313242e16e7fbec3 /js/src/base-component.js
parent2b4d0d166b58cabfb0384a2081d84e51df84e37f (diff)
downloadbootstrap-666fe596bf4629777f995dd79046b1db632ffdfb.tar.xz
bootstrap-666fe596bf4629777f995dd79046b1db632ffdfb.zip
Enable `unicorn/no-array-for-each` rule
Diffstat (limited to 'js/src/base-component.js')
-rw-r--r--js/src/base-component.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/base-component.js b/js/src/base-component.js
index cc6abd121..0a1c17357 100644
--- a/js/src/base-component.js
+++ b/js/src/base-component.js
@@ -36,9 +36,9 @@ class BaseComponent {
Data.remove(this._element, this.constructor.DATA_KEY)
EventHandler.off(this._element, this.constructor.EVENT_KEY)
- Object.getOwnPropertyNames(this).forEach(propertyName => {
+ for (const propertyName of Object.getOwnPropertyNames(this)) {
this[propertyName] = null
- })
+ }
}
_queueCallback(callback, element, isAnimated = true) {