Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Rename fuse.dom.Element#insertBefore, insertAfter, prepend, and append

#73

Rename fuse.dom.Element#append to appendChild
Rename fuse.dom.Element#prepend to prependChild
Rename fuse.dom.Element#inertAfter to appendSibling
Rename fuse.dom.Element#insertBefore to prependSibling

And add unit tests for these methods.

Reported by John-David Dalton · June 9th, 2010 @ 02:03 PM

State: resolved
Milestone: none
Assigned to: John-David Dalton John-David Dalton

Activity

  1. Radoslav Stankov
    Radoslav Stankov
    • Assigned user set to John-David Dalton

    I think that prototypes Element#insert should also be available + prototype don't expose Element._insertionTranslations for adding extensions to insert. It will be nice if FuseJS have such functionality.

    p.s. If something like _insertionTranslations is exposed methods like insert({into:element}) insert({instead:element}) could be added

    June 10th, 2010 @ 03:34 AM

  2. John-David Dalton
    John-David Dalton
    • Assigned user cleared.

    FuseJS's API goes from convenient/overloaded to very specific.
    I plan on keeping fuse.dom.Element#insert as the convenient but not necessarily speedy option.

    June 11th, 2010 @ 12:32 AM

  3. John-David Dalton
    John-David Dalton
    • State changed from new to resolved
    • Assigned user set to John-David Dalton

    August 19th, 2010 @ 10:48 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.