diff --git a/src/React.js b/src/React.js index 451f8dd..3ddab7c 100644 --- a/src/React.js +++ b/src/React.js @@ -187,11 +187,15 @@ function createFactory(class_) { exports.createFactory = createFactory; function preventDefault(event) { - return function() { return event.preventDefault();} + return function() { + event.preventDefault(); + }; }; exports.preventDefault = preventDefault; function stopPropagation(event) { - return function() { return event.stopPropagation();} + return function() { + event.stopPropagation(); + }; }; exports.stopPropagation = stopPropagation; diff --git a/src/React.purs b/src/React.purs index 9a4f927..a343c10 100644 --- a/src/React.purs +++ b/src/React.purs @@ -418,6 +418,6 @@ foreign import data Children :: Type -- | Internal conversion function from children elements to an array of React elements foreign import childrenToArray :: Children -> Array ReactElement -foreign import preventDefault :: forall eff a. Event -> Eff eff a +foreign import preventDefault :: forall eff. Event -> Eff eff Unit -foreign import stopPropagation :: forall eff a. Event -> Eff eff a +foreign import stopPropagation :: forall eff. Event -> Eff eff Unit