MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / remove

Function remove

docs/_static/jquery-3.6.0.js:6125–6144  ·  view source on GitHub ↗
( elem, selector, keepData )

Source from the content-addressed store, hash-verified

6123}
6124
6125function 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
6146jQuery.extend( {
6147 htmlPrefilter: function( html ) {

Callers 1

jquery-3.6.0.jsFile · 0.85

Calls 3

getAllFunction · 0.85
isAttachedFunction · 0.85
setGlobalEvalFunction · 0.85

Tested by

no test coverage detected