diff options
author | John Resig <jeresig@gmail.com> | 2011-05-03 15:02:26 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-05-03 15:02:26 -0400 |
commit | bfad45fe4510db78a38170752ccc9c9efe5f38b6 (patch) | |
tree | b90e36a8c5a38c89b3c0773f9716ffe89f000f19 /src | |
parent | 3cdffce19f8ce7a52b91f387872e3de804044f02 (diff) | |
download | jquery-bfad45fe4510db78a38170752ccc9c9efe5f38b6.tar.gz jquery-bfad45fe4510db78a38170752ccc9c9efe5f38b6.zip |
Fix problem with appending multiple string arguments in IE 6. Fixes #9072.
Diffstat (limited to 'src')
-rw-r--r-- | src/manipulation.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 610d19b7a..e9b1ee538 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -582,7 +582,7 @@ jQuery.extend({ context = context.ownerDocument || context[0] && context[0].ownerDocument || document; } - var ret = []; + var ret = [], j; for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { if ( typeof elem === "number" ) { @@ -628,7 +628,7 @@ jQuery.extend({ div.childNodes : []; - for ( var j = tbody.length - 1; j >= 0 ; --j ) { + for ( j = tbody.length - 1; j >= 0 ; --j ) { if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { tbody[ j ].parentNode.removeChild( tbody[ j ] ); } @@ -649,8 +649,8 @@ jQuery.extend({ var len; if ( !jQuery.support.appendChecked ) { if ( elem[0] && typeof (len = elem.length) === "number" ) { - for ( i = 0; i < len; i++ ) { - findInputs( elem[i] ); + for ( j = 0; j < len; j++ ) { + findInputs( elem[j] ); } } else { findInputs( elem ); |