git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c7f8ba
)
Added fix for bug #945 (Finding items with an ID of length in IE and Opera).
author
John Resig
<jeresig@gmail.com>
Sun, 25 Mar 2007 20:28:34 +0000
(20:28 +0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 25 Mar 2007 20:28:34 +0000
(20:28 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
910c11b
..
3b545e6
100644
(file)
--- 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;