We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a9efd8 commit d312d0fCopy full SHA for d312d0f
src/React/DOM.purs
@@ -6,10 +6,14 @@ module React.DOM where
6
" function mkDOM(tagName) { \
7
\ var ctor = React.DOM[tagName]; \
8
\ return function(props) { \
9
- \ props.type = props.attrType; \
10
- \ delete props.attrType; \
11
\ return function(children) { \
12
- \ return ctor.apply(ctor, [props].concat(children)); \
+ \ var p = {}; \
+ \ for (var k in props) { \
+ \ p[k] = props[k]; \
13
+ \ } \
14
+ \ p.type = p.attrType; \
15
+ \ delete p.attrType; \
16
+ \ return ctor.apply(ctor, [p].concat(children)); \
17
\ } \
18
19
\ }"
0 commit comments