summaryrefslogtreecommitdiff
path: root/js/event_target_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/event_target_test.ts')
-rw-r--r--js/event_target_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/event_target_test.ts b/js/event_target_test.ts
index 6065c875a..c6477f2c7 100644
--- a/js/event_target_test.ts
+++ b/js/event_target_test.ts
@@ -34,8 +34,8 @@ test(function constructedEventTargetCanBeUsedAsExpected() {
test(function anEventTargetCanBeSubclassed() {
class NicerEventTarget extends EventTarget {
- on(type, listener?, options?) {
- this.addEventListener(type, listener, options);
+ on(type, callback?, options?) {
+ this.addEventListener(type, callback, options);
}
off(type, callback?, options?) {