So, your solution was good, but I can't apply it just like that. It
gave me an idea, though:
function ensureArray() {
return $A(argument).flatten();
}
function myFunc(a) {
var a = ensureArray(a);
}
That would the trick, I guess. Except the side effect that a is flatten
()-ed, but in my case it's ok.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---