diff options
Diffstat (limited to 'js/src/base-component.js')
-rw-r--r-- | js/src/base-component.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/base-component.js b/js/src/base-component.js index cc6abd121d..0a1c173578 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) { |