1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 14:46:34 +02:00

Improve manipulator coverage

This commit is contained in:
Johann-S
2018-11-08 13:43:23 +01:00
committed by XhmikosR
parent 6cfc78f2d9
commit 57d50b2134
2 changed files with 10 additions and 8 deletions

View File

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