From 57d50b2134077f3ef93757b52ddf51a86632e92c Mon Sep 17 00:00:00 2001 From: Johann-S Date: Thu, 8 Nov 2018 13:43:23 +0100 Subject: Improve manipulator coverage --- js/src/dom/manipulator.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'js/src') 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 }, -- cgit v1.2.3