MCPcopy Create free account
hub / github.com/aspnet/AzureSignalR-samples / remove

Function remove

aspnet-samples/ChatRoomLocal/Scripts/jquery-3.7.1.js:5962–5981  ·  view source on GitHub ↗
( elem, selector, keepData )

Source from the content-addressed store, hash-verified

5960}
5961
5962function remove( elem, selector, keepData ) {
5963 var node,
5964 nodes = selector ? jQuery.filter( selector, elem ) : elem,
5965 i = 0;
5966
5967 for ( ; ( node = nodes[ i ] ) != null; i++ ) {
5968 if ( !keepData && node.nodeType === 1 ) {
5969 jQuery.cleanData( getAll( node ) );
5970 }
5971
5972 if ( node.parentNode ) {
5973 if ( keepData && isAttached( node ) ) {
5974 setGlobalEval( getAll( node, "script" ) );
5975 }
5976 node.parentNode.removeChild( node );
5977 }
5978 }
5979
5980 return elem;
5981}
5982
5983jQuery.extend( {
5984 htmlPrefilter: function( html ) {

Callers 1

jquery-3.7.1.jsFile · 0.70

Calls 3

getAllFunction · 0.70
isAttachedFunction · 0.70
setGlobalEvalFunction · 0.70

Tested by

no test coverage detected