@@ 5801-5816 (lines=16) @@ | ||
5798 | }, |
|
5799 | ||
5800 | // keepData is for internal use only--do not document |
|
5801 | remove: function( selector, keepData ) { |
|
5802 | for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { |
|
5803 | if ( !selector || jQuery.filter( selector, [ elem ] ).length ) { |
|
5804 | if ( !keepData && elem.nodeType === 1 ) { |
|
5805 | jQuery.cleanData( elem.getElementsByTagName("*") ); |
|
5806 | jQuery.cleanData( [ elem ] ); |
|
5807 | } |
|
5808 | ||
5809 | if ( elem.parentNode ) { |
|
5810 | elem.parentNode.removeChild( elem ); |
|
5811 | } |
|
5812 | } |
|
5813 | } |
|
5814 | ||
5815 | return this; |
|
5816 | }, |
|
5817 | ||
5818 | empty: function() { |
|
5819 | for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { |
@@ 5105-5120 (lines=16) @@ | ||
5102 | }, |
|
5103 | ||
5104 | // keepData is for internal use only--do not document |
|
5105 | remove: function( selector, keepData ) { |
|
5106 | for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { |
|
5107 | if ( !selector || jQuery.filter( selector, [ elem ] ).length ) { |
|
5108 | if ( !keepData && elem.nodeType === 1 ) { |
|
5109 | jQuery.cleanData( elem.getElementsByTagName("*") ); |
|
5110 | jQuery.cleanData( [ elem ] ); |
|
5111 | } |
|
5112 | ||
5113 | if ( elem.parentNode ) { |
|
5114 | elem.parentNode.removeChild( elem ); |
|
5115 | } |
|
5116 | } |
|
5117 | } |
|
5118 | ||
5119 | return this; |
|
5120 | }, |
|
5121 | ||
5122 | empty: function() { |
|
5123 | for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { |