Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with appending multiple string arguments in IE 6. Fixes #…
…9072.
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -582,7 +582,7 @@ jQuery.extend({ | ||
context = context.ownerDocument || context[0] && context[0].ownerDocument || document; | context = context.ownerDocument || context[0] && context[0].ownerDocument || document; | ||
} | } | ||
|
|
||
var ret = []; | var ret = [], j; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
timmywil
Member
|
|||
|
|
||
for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { | for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { | ||
if ( typeof elem === "number" ) { | if ( typeof elem === "number" ) { | ||
|
@@ -628,7 +628,7 @@ jQuery.extend({ | ||
div.childNodes : | 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 ) { | if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { | ||
tbody[ j ].parentNode.removeChild( tbody[ j ] ); | tbody[ j ].parentNode.removeChild( tbody[ j ] ); | ||
} | } | ||
|
@@ -649,8 +649,8 @@ jQuery.extend({ | ||
var len; | var len; | ||
if ( !jQuery.support.appendChecked ) { | if ( !jQuery.support.appendChecked ) { | ||
if ( elem[0] && typeof (len = elem.length) === "number" ) { | if ( elem[0] && typeof (len = elem.length) === "number" ) { | ||
for ( i = 0; i < len; i++ ) { | for ( j = 0; j < len; j++ ) { | ||
findInputs( elem[i] ); | findInputs( elem[j] ); | ||
} | } | ||
} else { | } else { | ||
findInputs( elem ); | findInputs( elem ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why not declare
i
andelem
here as well then? They’re all in the same scope.