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:
parent
a6c1a12e90
commit
26360d4ced
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user