mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Allow passing arguments to setTimeout/setInterval callbacks
This commit is contained in:
parent
05bd182538
commit
4b2b0d0723
12 changed files with 88 additions and 45 deletions
|
@ -64,13 +64,11 @@ Window implements WindowEventHandlers;
|
|||
// http://www.whatwg.org/html/#windowtimers
|
||||
[NoInterfaceObject/*, Exposed=Window,Worker*/]
|
||||
interface WindowTimers {
|
||||
//long setTimeout(Function handler, optional long timeout = 0, any... arguments);
|
||||
long setTimeout(Function handler, optional long timeout = 0, any... arguments);
|
||||
//long setTimeout(DOMString handler, optional long timeout = 0, any... arguments);
|
||||
long setTimeout(any handler, optional long timeout = 0);
|
||||
void clearTimeout(optional long handle = 0);
|
||||
//long setInterval(Function handler, optional long timeout = 0, any... arguments);
|
||||
long setInterval(Function handler, optional long timeout = 0, any... arguments);
|
||||
//long setInterval(DOMString handler, optional long timeout = 0, any... arguments);
|
||||
long setInterval(any handler, optional long timeout = 0);
|
||||
void clearInterval(optional long handle = 0);
|
||||
};
|
||||
Window implements WindowTimers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue