11module DOM.Event.Event
2- ( bubbles
3- , cancelable
4- , currentTarget
5- , defaultPrevented
6- , eventPhase
7- , eventPhaseIndex
8- , target
9- , timeStamp
10- , type_
11- , preventDefault
12- , stopImmediatePropagation
13- , stopPropagation
2+ ( module DOM.Event.Event
3+ , module T
144 ) where
155
166import Prelude
@@ -20,6 +10,7 @@ import Data.Maybe (fromJust)
2010import DOM (DOM )
2111import DOM.Event.EventPhase (EventPhase )
2212import DOM.Event.Types (Event , EventType )
13+ import DOM.Event.Types (Event ) as T
2314import DOM.Node.Types (Node )
2415
2516-- | The event type.
@@ -41,11 +32,17 @@ foreign import eventPhaseIndex :: Event -> Int
4132
4233-- | Prevents the event from bubbling up to futher event listeners. Other event
4334-- | listeners on the current target will still fire.
44- foreign import stopPropagation :: forall eff . Event -> Eff (dom :: DOM | eff ) Unit
35+ foreign import stopPropagation
36+ :: forall eff
37+ . Event
38+ -> Eff (dom :: DOM | eff ) Unit
4539
4640-- | Prevents all other listeners for the event from being called. This includes
4741-- | event listeners added to the current target after the current listener.
48- foreign import stopImmediatePropagation :: forall eff . Event -> Eff (dom :: DOM | eff ) Unit
42+ foreign import stopImmediatePropagation
43+ :: forall eff
44+ . Event
45+ -> Eff (dom :: DOM | eff ) Unit
4946
5047-- | Indicates whether the event will bubble up through the DOM or not.
5148foreign import bubbles :: Event -> Boolean
@@ -54,7 +51,10 @@ foreign import bubbles :: Event -> Boolean
5451foreign import cancelable :: Event -> Boolean
5552
5653-- | Cancels the event if it can be cancelled.
57- foreign import preventDefault :: forall eff . Event -> Eff (dom :: DOM | eff ) Unit
54+ foreign import preventDefault
55+ :: forall eff
56+ . Event
57+ -> Eff (dom :: DOM | eff ) Unit
5858
5959-- | Indicates whether `preventDefault` was called on the event.
6060foreign import defaultPrevented :: Event -> Boolean
0 commit comments