mr_justin wrote:
>> but the fact is, I have several arguments, not
>> just one. I want to treat the first argument as an Enumerable, and the
> 
> I see, that wasn't clear from the beginning.
> 
> In that case, how about:
> 
> elements = $A([elements]).flatten();
> handlers = $A([handlers]).flatten();
Here's how I use to do it:
  var sth_as_array = $A(Object.isArray (sth) ? sth : [sth]);

----Daniel


--~--~---------~--~----~------------~-------~--~----~
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