File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ class type event_listener_options = object
333333 method passive : bool t writeonly_prop
334334end
335335
336- let addEventListenerWithOptions (e : ( < .. > as 'a) t ) typ ?capture ?once ?passive h =
336+ let addEventListenerWithOptions (e : < .. > t ) typ ?capture ?once ?passive h =
337337 if not (Js.Optdef. test (Js.Unsafe. coerce e)##.addEventListener)
338338 then
339339 let ev = (Js. string " on" )##concat typ in
@@ -353,7 +353,7 @@ let addEventListenerWithOptions (e : (< .. > as 'a) t) typ ?capture ?once ?passi
353353 let () = (Js.Unsafe. coerce e)##addEventListener typ h opts in
354354 fun () -> (Js.Unsafe. coerce e)##removeEventListener typ h opts
355355
356- let addEventListener (e : ( < .. > as 'a) t ) typ h capt =
356+ let addEventListener (e : < .. > t ) typ h capt =
357357 addEventListenerWithOptions e typ ~capture: capt h
358358
359359let removeEventListener id = id ()
Original file line number Diff line number Diff line change @@ -2593,7 +2593,7 @@ val removeEventListener : event_listener_id -> unit
25932593(* * Remove the given event listener. *)
25942594
25952595val addMousewheelEventListenerWithOptions :
2596- ( #eventTarget t as 'a )
2596+ #eventTarget t
25972597 -> ?capture : bool t
25982598 -> ?once : bool t
25992599 -> ?passive : bool t
@@ -2605,7 +2605,7 @@ val addMousewheelEventListenerWithOptions :
26052605 means down / right. *)
26062606
26072607val addMousewheelEventListener :
2608- ( #eventTarget t as 'a )
2608+ #eventTarget t
26092609 -> (mouseEvent t -> dx :int -> dy :int -> bool t )
26102610 -> bool t
26112611 -> event_listener_id
You can’t perform that action at this time.
0 commit comments