Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 7bc5fb0

Browse files
cvrebertsideshowbarker
authored andcommitted
Specify useCapture argument in addEventListener calls (#215)
1 parent eccb7d1 commit 7bc5fb0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

testharness.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ policies and contribution forms [3].
389389
self.addEventListener("connect",
390390
function(message_event) {
391391
this_obj._add_message_port(message_event.source);
392-
});
392+
}, false);
393393
}
394394
SharedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
395395

@@ -430,7 +430,7 @@ policies and contribution forms [3].
430430
this_obj._add_message_port(event.source);
431431
}
432432
}
433-
});
433+
}, false);
434434

435435
// The oninstall event is received after the service worker script and
436436
// all imported scripts have been fetched and executed. It's the
@@ -586,7 +586,7 @@ policies and contribution forms [3].
586586
});
587587

588588
for (var i = 0; i < eventTypes.length; i++) {
589-
watchedNode.addEventListener(eventTypes[i], eventHandler);
589+
watchedNode.addEventListener(eventTypes[i], eventHandler, false);
590590
}
591591

592592
/**
@@ -611,7 +611,7 @@ policies and contribution forms [3].
611611

612612
function stop_watching() {
613613
for (var i = 0; i < eventTypes.length; i++) {
614-
watchedNode.removeEventListener(eventTypes[i], eventHandler);
614+
watchedNode.removeEventListener(eventTypes[i], eventHandler, false);
615615
}
616616
};
617617

@@ -2686,8 +2686,8 @@ policies and contribution forms [3].
26862686
}
26872687
};
26882688

2689-
addEventListener("error", error_handler);
2690-
addEventListener("unhandledrejection", function(e){ error_handler(e.reason); });
2689+
addEventListener("error", error_handler, false);
2690+
addEventListener("unhandledrejection", function(e){ error_handler(e.reason); }, false);
26912691

26922692
test_environment.on_tests_ready();
26932693

0 commit comments

Comments
 (0)