Replaces Array#map with Array#forEach

This commit is contained in:
Alex committed 2016-04-13 17:11:08 +08:00
1 parent 5785a418a2
commit 9d94d003a9
1 file changed
+1 -1
@@ -290,7 +290,7 @@ var SVGDOMPropertyConfig = {
DOMAttributeNames: {},
};
Object.keys(ATTRS).map((key) => {
Object.keys(ATTRS).forEach((key) => {
SVGDOMPropertyConfig.Properties[key] = 0;
if (ATTRS[key]) {
SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key];