MCPcopy Create free account
hub / github.com/TruthHun/BookStack / remove

Function remove

static/wangEditor/js/lib/jquery-2.2.1.js:5296–5315  ·  view source on GitHub ↗
( elem, selector, keepData )

Source from the content-addressed store, hash-verified

5294}
5295
5296function remove( elem, selector, keepData ) {
5297 var node,
5298 nodes = selector ? jQuery.filter( selector, elem ) : elem,
5299 i = 0;
5300
5301 for ( ; ( node = nodes[ i ] ) != null; i++ ) {
5302 if ( !keepData && node.nodeType === 1 ) {
5303 jQuery.cleanData( getAll( node ) );
5304 }
5305
5306 if ( node.parentNode ) {
5307 if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
5308 setGlobalEval( getAll( node, "script" ) );
5309 }
5310 node.parentNode.removeChild( node );
5311 }
5312 }
5313
5314 return elem;
5315}
5316
5317jQuery.extend( {
5318 htmlPrefilter: function( html ) {

Callers 1

jquery-2.2.1.jsFile · 0.70

Calls 2

getAllFunction · 0.70
setGlobalEvalFunction · 0.70

Tested by

no test coverage detected