Skip to content

Commit 3c689a7

Browse files
committed
adjusted signature of removeEventListener to that of addEventListener
1 parent 7236786 commit 3c689a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,7 @@ class EventTarget extends js.Object {
22242224
*
22252225
* MDN
22262226
*/
2227-
def removeEventListener(`type`: String, listener: js.Function1[Event, _], useCapture: Boolean = js.native): Unit = js.native
2227+
def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean = js.native): Unit = js.native
22282228

22292229
/**
22302230
* The EventTarget.addEventListener() method registers the specified listener on

0 commit comments

Comments
 (0)