aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-03-25 20:28:34 +0000
committerJohn Resig <jeresig@gmail.com>2007-03-25 20:28:34 +0000
commit44769df602f4b6a5152233d32eb2f93e71475bfe (patch)
tree78b0ee3a97bd63a2ffcee96f954d2cef43bbd1db /src
parent9c7f8ba90ea45a653cf45a6379ccd4943cc22200 (diff)
downloadjquery-44769df602f4b6a5152233d32eb2f93e71475bfe.tar.gz
jquery-44769df602f4b6a5152233d32eb2f93e71475bfe.zip
Added fix for bug #945 (Finding items with an ID of length in IE and Opera).
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 910c11b21..3b545e66f 100644
--- a/src/jquery/jquery.js
+++ b/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;