Changes between Initial Version and Version 1 of Ticket #5119


Ignore:
Timestamp:
Feb 3, 2010, 2:48:39 PM (8 years ago)
Author:
Jörn Zaefferer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5119 – Description

    initial v1  
    11Cause not entirely clear, yet, details here: http://forum.jquery.com/topic/1-4-1-does-not-seem-to-like-ui-1-8rc1
     2
     3jQuery core remove implementation:
     4
     5{{{
     6// keepData is for internal use only--do not document
     7remove: function( selector, keepData ) {
     8        if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
     9                if ( !keepData && this.nodeType === 1 ) {
     10                        cleanData( this.getElementsByTagName("*") );
     11                        cleanData( [ this ] );
     12                }
     13
     14                if ( this.parentNode ) {
     15                         this.parentNode.removeChild( this );
     16                }
     17        }
     18}
     19}}}
     20
     21Override in widget:
     22
     23{{{
     24var _remove = $.fn.remove;
     25
     26$.fn.remove = function( selector, keepData ) {
     27        if ( !keepData ) {
     28                $( "*", this ).add( this ).each(function() {
     29                        $( this ).triggerHandler( "remove" );
     30                });
     31        }
     32        return _remove.apply( this, arguments );
     33};
     34}}}