Commit 44769df6 authored by John Resig's avatar John Resig

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

parent 9c7f8ba9
...@@ -1626,7 +1626,9 @@ jQuery.extend({ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment