the global variable "arguments" will give u an array of arguments...

https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/arguments


Alex Mcauley
http://www.thevacancymarket.com
----- Original Message ----- 
From: "fma" <f...@gbiloba.org>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Monday, December 07, 2009 9:31 AM
Subject: [Proto-Scripty] Re: Custom signal


> I'm not sure it will do what I'm looking for. If I understand, your
> code will call the same func with all arguments, but one by one. What
> I want to do is to call each slot with all arguments.
>
> Here is an example:
>
> function func1(arg1, arg2) {
> ...
> }
>
> function func2(arg1, arg2) {
> ...
> }
>
> mySignal = new Signal();
> mySignal.connect(func1);
> mySignal.connect(func2);
>
> The call:
>
> mySignal.emit('a', 3);
>
> will in fact do:
>
> func1('a', 3);
> func2('a', 3);
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" group.
> To post to this group, send email to 
> prototype-scriptacul...@googlegroups.com.
> To unsubscribe from this group, send email to 
> prototype-scriptaculous+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>
> 

--

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to