In comp.lang.javascript message
<11**********************@73g2000cwn.googlegroups. com>, Tue, 19 Dec 2006
07:56:16, FrederikVds <fr*********************@gmail.comwrote:
>I have a function which can be called with an unlimited number of
arguments.
I want to call another function with exactly the same arguments. I know
I can get the arguments in the arguments object, and as such also in an
array, but how do you pass the elements of an array to another function
as parameters?
Rewrite the function to take a single parameter which will be an Object
holding all the previous parameters. You can easily pass that Object in
the next call. Untested.
That should work in older browsers; subtler ways may only work in newer
ones.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3? Turnpike 6.05
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htmclpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.htmlnews:borland.* Guidelines