Skip to content

Commit 312ff24

Browse files
committed
look up the new kinds of constructors generated by purescript to get property names
1 parent 732788a commit 312ff24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/React/DOM.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ module React.DOM where
281281
\ var result = {}; \
282282
\ for (var i = 0, len = props.length; i < len; i++) { \
283283
\ var prop = props[i]; \
284-
\ var name = prop.ctor.substring(10); \
284+
\ var name = prop.constructor.name; \
285285
\ name = name[0].toLowerCase() + name.substring(1); \
286-
\ var val = prop.values[0]; \
286+
\ var val = prop.value0; \
287287
\ /* Until React.js handles data and aria like style*/ \
288288
\ /* we have to unload the properties.*/ \
289289
\ if (name === 'data' || name === 'aria') { \

0 commit comments

Comments
 (0)