Skip to content
Permalink
Browse files

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

…Opera).
  • Loading branch information
jeresig committed Mar 25, 2007
1 parent 9c7f8ba commit 44769df602f4b6a5152233d32eb2f93e71475bfe
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/jquery/jquery.js
@@ -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;

0 comments on commit 44769df

Please sign in to comment.
You can’t perform that action at this time.