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_) {
152
152
return React . createFactory ( class_ ) ;
153
153
}
154
154
exports . 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
51
51
, transformState
52
52
53
53
, handle
54
+ , preventDefault
55
+ , stopPropagation
54
56
55
57
, createClass
56
58
, createClassStateless
@@ -362,3 +364,7 @@ foreign import data Children :: *
362
364
363
365
-- | Internal conversion function from children elements to an array of React elements
364
366
foreign 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