Added fix for bug #945 (Finding items with an ID of length in IE and Opera).

This commit is contained in:
John Resig 2007-03-25 20:28:34 +00:00
parent 9c7f8ba90e
commit 44769df602

View File

@ -1626,7 +1626,9 @@ jQuery.extend({
* @cat JavaScript * @cat JavaScript
*/ */
merge: function(first, second) { 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]); first.push(second[i]);
return first; return first;