mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Replaces Array#map with Array#forEach
This commit is contained in:
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];
|
||||
|
||||
Reference in new issue
Block a user