mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: Fixed a global var leak introduced by me on a recent commit.
This commit is contained in:
parent
4ca4ce52f7
commit
51428a3c9e
14
src/core.js
14
src/core.js
@ -1016,14 +1016,14 @@ jQuery.extend({
|
||||
|
||||
if ( fragment ) {
|
||||
for ( var i = 0; ret[i]; i++ ) {
|
||||
elem = ret[i];
|
||||
if ( jQuery.nodeName( elem, "script" ) ) {
|
||||
if( elem.parentNode )
|
||||
elem.parentNode.removeChild( elem );
|
||||
var node = ret[i];
|
||||
if ( jQuery.nodeName( node, "script" ) ) {
|
||||
if( node.parentNode )
|
||||
node.parentNode.removeChild( node );
|
||||
} else {
|
||||
if ( elem.nodeType === 1 )
|
||||
ret = jQuery.merge( ret, elem.getElementsByTagName("script"));
|
||||
fragment.appendChild( elem );
|
||||
if ( node.nodeType === 1 )
|
||||
ret = jQuery.merge( ret, node.getElementsByTagName("script"));
|
||||
fragment.appendChild( node );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user