aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'js/src')
-rw-r--r--js/src/dom/manipulator.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/js/src/dom/manipulator.js b/js/src/dom/manipulator.js
index b9135aa79..d100a9873 100644
--- a/js/src/dom/manipulator.js
+++ b/js/src/dom/manipulator.js
@@ -63,13 +63,10 @@ const Manipulator = {
}
}
- for (const key in attributes) {
- if (!Object.prototype.hasOwnProperty.call(attributes, key)) {
- continue
- }
-
- attributes[key] = normalizeData(attributes[key])
- }
+ Object.keys(attributes)
+ .forEach((key) => {
+ attributes[key] = normalizeData(attributes[key])
+ })
return attributes
},