0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

Fixes tests that use events

This commit is contained in:
Admin 2018-08-09 01:06:09 -05:00
parent a6c1a12e90
commit 26360d4ced
4 changed files with 16 additions and 16 deletions

View File

@ -17,12 +17,12 @@ function createElement(name) {
return document.createElement(name);
}
function addListener(node, event, handler) {
node.addEventListener(event, handler, false);
function addListener(node, event, handler, options) {
node.addEventListener(event, handler, options);
}
function removeListener(node, event, handler) {
node.removeEventListener(event, handler, false);
function removeListener(node, event, handler, options) {
node.removeEventListener(event, handler, options);
}
function setAttribute(node, attribute, value) {

View File

@ -17,12 +17,12 @@ function createElement(name) {
return document.createElement(name);
}
function addListener(node, event, handler) {
node.addEventListener(event, handler, false);
function addListener(node, event, handler, options) {
node.addEventListener(event, handler, options);
}
function removeListener(node, event, handler) {
node.removeEventListener(event, handler, false);
function removeListener(node, event, handler, options) {
node.removeEventListener(event, handler, options);
}
function setAttribute(node, attribute, value) {

View File

@ -17,12 +17,12 @@ function createElement(name) {
return document.createElement(name);
}
function addListener(node, event, handler) {
node.addEventListener(event, handler, false);
function addListener(node, event, handler, options) {
node.addEventListener(event, handler, options);
}
function removeListener(node, event, handler) {
node.removeEventListener(event, handler, false);
function removeListener(node, event, handler, options) {
node.removeEventListener(event, handler, options);
}
function setAttribute(node, attribute, value) {

View File

@ -17,12 +17,12 @@ function createElement(name) {
return document.createElement(name);
}
function addListener(node, event, handler) {
node.addEventListener(event, handler, false);
function addListener(node, event, handler, options) {
node.addEventListener(event, handler, options);
}
function removeListener(node, event, handler) {
node.removeEventListener(event, handler, false);
function removeListener(node, event, handler, options) {
node.removeEventListener(event, handler, options);
}
function timeRangesToArray(ranges) {