We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc1e1d8 commit 5d5eb28Copy full SHA for 5d5eb28
src/Language/Fay/JQuery.hs
@@ -643,7 +643,7 @@ onFocus :: (Event -> Fay ()) -> JQuery -> Fay ()
643
onFocus = ffi "%2['focus'](%1)"
644
645
focus :: JQuery -> Fay JQuery
646
-focus = ffi "%2['focus'](%1)"
+focus = ffi "%1['focus']()"
647
648
-- TODO `select` would clash with the other select definition, should it be renamed?
649
onselect :: (Event -> Fay ()) -> JQuery -> Fay ()
test.hs
@@ -2,9 +2,9 @@
2
3
module Test (main) where
4
5
-import Language.Fay.Prelude
+import Prelude
6
import Language.Fay.JQuery
7
-import Language.Fay.FFI
+import FFI
8
9
(>=>) :: (a -> Fay b) -> (b -> Fay c) -> (a -> Fay c)
10
f >=> g = \x -> f x >>= g
0 commit comments