Skip to content

Commit

Permalink
Update dom.nim (removeEventListener function) (#24650)
Browse files Browse the repository at this point in the history
Essentially just an update for the `removeEventListener` function as per
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener

(cherry picked from commit 8c3e62e)
  • Loading branch information
Niminem authored and narimiran committed Jan 27, 2025
1 parent 2193c3f commit c0d50dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/js/dom.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,9 @@ proc clearInterval*(i: Interval) {.importc, nodecl.}
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), useCapture: bool = false)
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), options: AddEventListenerOptions)
proc dispatchEvent*(et: EventTarget, ev: Event)
proc removeEventListener*(et: EventTarget; ev: cstring; cb: proc(ev: Event))
proc removeEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), useCapture: bool = false)
proc removeEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), options: AddEventListenerOptions)


# Window "methods"
proc alert*(w: Window, msg: cstring)
Expand Down

0 comments on commit c0d50dd

Please sign in to comment.