aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-12-26 15:48:04 +0000
committerAriel Flesler <aflesler@gmail.com>2008-12-26 15:48:04 +0000
commit51428a3c9e21f8c98e9ada60e5fa34ee53de0aa3 (patch)
treeb01c8d0358424df3ffa4fe8e5e2e09926051f685 /src
parent4ca4ce52f76f4db64f9a8350aa60ab54eba15697 (diff)
downloadjquery-51428a3c9e21f8c98e9ada60e5fa34ee53de0aa3.tar.gz
jquery-51428a3c9e21f8c98e9ada60e5fa34ee53de0aa3.zip
jquery core: Fixed a global var leak introduced by me on a recent commit.
Diffstat (limited to 'src')
-rw-r--r--src/core.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core.js b/src/core.js
index b8b207b71..3900a0a5c 100644
--- a/src/core.js
+++ b/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 );
}
}