Skip to content
Permalink
Browse files

jquery core: Fixed a global var leak introduced by me on a recent com…

…mit.
  • Loading branch information
flesler committed Dec 26, 2008
1 parent 4ca4ce5 commit 51428a3c9e21f8c98e9ada60e5fa34ee53de0aa3
Showing with 7 additions and 7 deletions.
  1. +7 −7 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 );
}
}

0 comments on commit 51428a3

Please sign in to comment.
You can’t perform that action at this time.