jquery core: Fixed a global var leak introduced by me on a recent commit.
This commit is contained in:
parent
4ca4ce52f7
commit
51428a3c9e
1 changed files with 7 additions and 7 deletions
14
src/core.js
14
src/core.js
|
@ -1016,14 +1016,14 @@ jQuery.extend({
|
||||||
|
|
||||||
if ( fragment ) {
|
if ( fragment ) {
|
||||||
for ( var i = 0; ret[i]; i++ ) {
|
for ( var i = 0; ret[i]; i++ ) {
|
||||||
elem = ret[i];
|
var node = ret[i];
|
||||||
if ( jQuery.nodeName( elem, "script" ) ) {
|
if ( jQuery.nodeName( node, "script" ) ) {
|
||||||
if( elem.parentNode )
|
if( node.parentNode )
|
||||||
elem.parentNode.removeChild( elem );
|
node.parentNode.removeChild( node );
|
||||||
} else {
|
} else {
|
||||||
if ( elem.nodeType === 1 )
|
if ( node.nodeType === 1 )
|
||||||
ret = jQuery.merge( ret, elem.getElementsByTagName("script"));
|
ret = jQuery.merge( ret, node.getElementsByTagName("script"));
|
||||||
fragment.appendChild( elem );
|
fragment.appendChild( node );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue