MCPcopy Create free account
hub / github.com/TanaStudy/Java-Study / remove

Function remove

5. SpringMVC/springmvc-06-ajax/web/static/js/jquery-3.6.0.js:6125–6144  ·  view source on GitHub ↗
( elem, selector, keepData )

Source from the content-addressed store, hash-verified

6123 }
6124
6125 function remove( elem, selector, keepData ) {
6126 var node,
6127 nodes = selector ? jQuery.filter( selector, elem ) : elem,
6128 i = 0;
6129
6130 for ( ; ( node = nodes[ i ] ) != null; i++ ) {
6131 if ( !keepData && node.nodeType === 1 ) {
6132 jQuery.cleanData( getAll( node ) );
6133 }
6134
6135 if ( node.parentNode ) {
6136 if ( keepData && isAttached( node ) ) {
6137 setGlobalEval( getAll( node, "script" ) );
6138 }
6139 node.parentNode.removeChild( node );
6140 }
6141 }
6142
6143 return elem;
6144 }
6145
6146 jQuery.extend( {
6147 htmlPrefilter: function( html ) {

Callers 1

jquery-3.6.0.jsFile · 0.70

Calls 4

isAttachedFunction · 0.85
getAllFunction · 0.70
setGlobalEvalFunction · 0.70
filterMethod · 0.45

Tested by

no test coverage detected