Bug Tracker

Changes between Initial Version and Version 1 of Ticket #7641, comment 3


Ignore:
Timestamp:
Nov 29, 2010, 4:30:33 PM (8 years ago)
Author:
darcyclarke
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7641, comment 3

    initial v1  
    1 Ater talking with Paul a bit about this I've come up with a slightly different version of my proposed patch. Instead of appending the cloned element to the body I insert it before itself. And instead of removing the element completely Paul suggested detaching it.
     1Ater talking with Paul a bit about this I've come up with a slightly different version of my proposed patch. Instead of appending the cloned element to the body I insert it before itself.
    22
    33{{{
     
    55     var $temp = jQuery(self).clone().css(name,"auto").insertBefore(self);
    66     val = $temp.css(prop);
    7      $temp.detach();
     7     $temp.remove();
    88}
    99}}}
     
    1212
    1313Thoughts?
     14
     15An example of the implementation in a separate function, not in the core as proposed: http://jsfiddle.net/darcyclarke/JNRpK/21/