MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / remove

Function remove

libs/jquery-3.5.1/jquery-3.5.1.js:6139–6158  ·  view source on GitHub ↗
( elem, selector, keepData )

Source from the content-addressed store, hash-verified

6137}
6138
6139function remove( elem, selector, keepData ) {
6140 var node,
6141 nodes = selector ? jQuery.filter( selector, elem ) : elem,
6142 i = 0;
6143
6144 for ( ; ( node = nodes[ i ] ) != null; i++ ) {
6145 if ( !keepData && node.nodeType === 1 ) {
6146 jQuery.cleanData( getAll( node ) );
6147 }
6148
6149 if ( node.parentNode ) {
6150 if ( keepData && isAttached( node ) ) {
6151 setGlobalEval( getAll( node, "script" ) );
6152 }
6153 node.parentNode.removeChild( node );
6154 }
6155 }
6156
6157 return elem;
6158}
6159
6160jQuery.extend( {
6161 htmlPrefilter: function( html ) {

Callers 1

jquery-3.5.1.jsFile · 0.70

Calls 3

isAttachedFunction · 0.85
getAllFunction · 0.70
setGlobalEvalFunction · 0.70

Tested by

no test coverage detected