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.

Add unit tests for clone() methods.

#70

clone(deep) methods on Array, Element, Hash, Object, Number, Range, String, and Template need unit tests.

fuse.dom.Element#clone will also accept.

fuse(el).clone({ 'deep': true, 'data': true, 'events': true, 'excludes': 'id' });'

excludes can be a string or an array of properties/attributes to exclude from cloning.

Reported by John-David Dalton · June 9th, 2010 @ 01:14 PM

State: new
Milestone: Iteration 3
Assigned to: Kit Goncharov Kit Goncharov

Activity

  1. John-David Dalton
    John-David Dalton

    Also don't forget to try exlcudes with something like ['className'] and ['class'] as it should work with both.

    And please test cloning input elements and check that their attribute values match;

    var input = fuse('<input type="text" value="source">');
    var clone = input.clone();
    
    clone.setValue("live");
    clone.getAttribute('value'); // should be `source`
    clone.getValue(); // should be `live`
    

    June 9th, 2010 @ 01:28 PM

  2. John-David Dalton
  3. Mark Caudill
    Mark Caudill
    • Assigned user set to Mark Caudill

    June 9th, 2010 @ 08:43 PM

  4. Joe Gornick
    Joe Gornick
    • Assigned user changed from Mark Caudill to Joe Gornick
    • Milestone order changed from 0 to 0

    September 18th, 2010 @ 04:11 PM

  5. John-David Dalton
    John-David Dalton

    We should test each option

    deep

    data

    events

    excludes single attribute or array

    September 18th, 2010 @ 11:12 PM

  6. Joe Gornick
    Joe Gornick
    • Milestone cleared.
    • Milestone order changed from 1 to 0

    September 29th, 2010 @ 09:31 AM

  7. Joe Gornick
    Joe Gornick
    • Assigned user changed from Joe Gornick to Kit Goncharov

    September 29th, 2010 @ 09:39 AM

  8. Kit Goncharov
    Kit Goncharov
    • State changed from new to hold
    • Milestone set to Iteration 2
    • Milestone order changed from 7 to 0

    Pushing all DOM-related tests back to the second iteration.

    February 28th, 2011 @ 10:23 PM

  9. Joe Gornick
    Joe Gornick
    • State changed from hold to new

    March 2nd, 2011 @ 12:02 AM

  10. Kit Goncharov
  11. Kit Goncharov
    Kit Goncharov
    • Milestone changed from Iteration 2 to Iteration 3
    • Milestone order changed from 2 to 0

    March 25th, 2011 @ 07:58 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.