Added fix for bug #945 (Finding items with an ID of length in IE and Opera).
This commit is contained in:
parent
9c7f8ba90e
commit
44769df602
1 changed files with 3 additions and 1 deletions
4
src/jquery/jquery.js
vendored
4
src/jquery/jquery.js
vendored
|
@ -1626,7 +1626,9 @@ jQuery.extend({
|
|||
* @cat JavaScript
|
||||
*/
|
||||
merge: function(first, second) {
|
||||
for ( var i = 0, sl = second.length; i < sl; i++ )
|
||||
// We have to loop this way because IE & Opera overwrite the length
|
||||
// expando of getElementsByTagName
|
||||
for ( var i = 0; second[i]; i++ )
|
||||
first.push(second[i]);
|
||||
|
||||
return first;
|
||||
|
|
Loading…
Reference in a new issue