mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
14
components/script/dom/webidls/Function.webidl
Normal file
14
components/script/dom/webidls/Function.webidl
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/#functiocn
|
||||
*
|
||||
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
||||
* Opera Software ASA. You are granted a license to use, reproduce
|
||||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
callback Function = any(any... arguments);
|
|
@ -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