Skip to content

Commit 5d5eb28

Browse files
committed
Remove extra arg in focus FFI binding and make tests compile
1 parent bc1e1d8 commit 5d5eb28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Language/Fay/JQuery.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ onFocus :: (Event -> Fay ()) -> JQuery -> Fay ()
643643
onFocus = ffi "%2['focus'](%1)"
644644

645645
focus :: JQuery -> Fay JQuery
646-
focus = ffi "%2['focus'](%1)"
646+
focus = ffi "%1['focus']()"
647647

648648
-- TODO `select` would clash with the other select definition, should it be renamed?
649649
onselect :: (Event -> Fay ()) -> JQuery -> Fay ()

test.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
module Test (main) where
44

5-
import Language.Fay.Prelude
5+
import Prelude
66
import Language.Fay.JQuery
7-
import Language.Fay.FFI
7+
import FFI
88

99
(>=>) :: (a -> Fay b) -> (b -> Fay c) -> (a -> Fay c)
1010
f >=> g = \x -> f x >>= g

0 commit comments

Comments
 (0)