MochiKit.DOM.insertSiblingNodesBefore(node[, siblingNode[, ...]]): http://www.mochikit.com/doc/html/MochiKit/DOM.html#fn-insertsiblingnodesbefore
/Per On Tue, May 13, 2008 at 8:27 PM, Szaijan <[EMAIL PROTECTED]> wrote: > > Is there a MochiKit method similar to appendChildNodes that will > insert the list of children at the beginning of the list of child > elements, or at an arbitrary index, rather than at the end? > > I am rewriting an existing JS object using MochiKit and find myself > using: > > parent.insertBefore(child, parent.firstChild) > > rather than any MochiKit function. What I'd really like is an > insertChildNodes(parent, index, [child, ...]), where index = 'null' > would append to the end, index = '0' would insert at the beginning, > and any other index would insert at that point in the child list if > the index exists and append to the end if it does not. > > Is there some other functionality in MochiKit that makes this > operation trivial and thus not worthy of it's own function? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" 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/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
