Function.apply and MochiKit.Base.extend sort of works:

    var args = MochiKit.Base.extend([pos, 0], elems);
    arr.splice.apply(arr, args);

Not that is looks very nice, though.

/Per

On Tue, Mar 25, 2008 at 10:54 PM, Alexandre Augustus Falcão
<[EMAIL PROTECTED]> wrote:
> I searched out but can't figure if there is an option to the Array.splice
> function where I can pass an array in time of item1[, ..., itemX] params. So
> i can insert an entire array into the other one without a loop inserting one
> by one or an eval :P
>
> []s
>
> Pigme
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to