mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #6504 from alexlur/patch-1
Replaces Array#map with Array#forEach
(cherry picked from commit 932334d3d4)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user