aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-11-08 13:43:23 +0100
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commit57d50b2134077f3ef93757b52ddf51a86632e92c (patch)
tree012581acfe8c3a7ae3ed5dc14af557a787253d51 /js/src
parent6cfc78f2d95eca0b6fc6d0a19a76a1102f8c2254 (diff)
downloadbootstrap-57d50b2134077f3ef93757b52ddf51a86632e92c.tar.xz
bootstrap-57d50b2134077f3ef93757b52ddf51a86632e92c.zip
Improve manipulator coverage
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
},