arguments is global...

consider this ...

function foo('one','two','three')  {
alert(arguments[0]); // one
alert(arguments[1]); // two
alert(arguments[2]); // three
}


Alex Mcauley
http://www.thevacancymarket.com
----- Original Message ----- 
From: "fma" <[email protected]>
To: "Prototype & script.aculo.us" <[email protected]>
Sent: Monday, December 07, 2009 11:53 AM
Subject: [Proto-Scripty] Re: Custom signal


> Good!
>
> Is it possible to pass again this var to another function? What if I
> do:
>
> function func2(arguments) {
> ...
> }
>
> function func1() {
>    func2(arguments);
> }
>
> func1(a, b);
>
> Does it work?
>
> --
>
> 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 
> [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to