This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +34
-10
lines changed Expand file tree Collapse file tree 3 files changed +34
-10
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,9 @@ module DOM.Event.CloseEvent
44 , wasClean
55 ) where
66
7- import Prelude
7+ import Data.Maybe.Unsafe as U
8+ import DOM.Event.Types (CloseEvent )
89
9- import Control.Monad.Eff (Eff ())
10-
11- import Data.Enum (toEnum )
12- import qualified Data.Maybe.Unsafe as U
13-
14- import DOM
15- import DOM.Event.EventPhase
16- import DOM.Event.Types
17- import DOM.Node.Types
1810
1911foreign import code :: CloseEvent -> Int
2012foreign import reason :: CloseEvent -> String
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+
3+ // module DOM.Event.ErrorEvent
4+
5+ exports . message = function ( e ) {
6+ e . message ;
7+ } ;
8+
9+ exports . fileName = function ( e ) {
10+ e . filename ;
11+ } ;
12+
13+ exports . lineNo = function ( e ) {
14+ e . lineno ;
15+ } ;
16+
17+ exports . colNo = function ( e ) {
18+ e . colno ;
19+ } ;
Original file line number Diff line number Diff line change 1+ module DOM.Event.ErrorEvent
2+ ( message
3+ , fileName
4+ , lineNo
5+ , colNo
6+ ) where
7+
8+ import DOM.Event.Types (ErrorEvent )
9+
10+ foreign import message :: ErrorEvent -> String
11+ foreign import fileName :: ErrorEvent -> String
12+ foreign import lineNo :: ErrorEvent -> Int
13+ foreign import colNo :: ErrorEvent -> Int
You can’t perform that action at this time.
0 commit comments