mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
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 New Issue
Block a user