File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -152,3 +152,13 @@ function createFactory(class_) {
152152 return React . createFactory ( class_ ) ;
153153}
154154exports . createFactory = createFactory ;
155+
156+ function preventDefault ( event ) {
157+ return function ( ) { return event . preventDefault ( ) ; }
158+ } ;
159+ exports . preventDefault = preventDefault ;
160+
161+ function stopPropagation ( event ) {
162+ return function ( ) { return event . stopPropagation ( ) ; }
163+ } ;
164+ exports . stopPropagation = stopPropagation ;
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ module React
5151 , transformState
5252
5353 , handle
54+ , preventDefault
55+ , stopPropagation
5456
5557 , createClass
5658 , createClassStateless
@@ -362,3 +364,7 @@ foreign import data Children :: *
362364
363365-- | Internal conversion function from children elements to an array of React elements
364366foreign import childrenToArray :: Children -> Array ReactElement
367+
368+ foreign import preventDefault :: forall eff a . Event -> Eff eff a
369+
370+ foreign import stopPropagation :: forall eff a . Event -> Eff eff a
You can’t perform that action at this time.
0 commit comments