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:
785d500
)
Fixed annoying $()/Array bug.
author
John Resig
<jeresig@gmail.com>
Fri, 28 Jul 2006 03:32:43 +0000
(
03:32
+0000)
committer
John Resig
<jeresig@gmail.com>
Fri, 28 Jul 2006 03:32:43 +0000
(
03:32
+0000)
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
178ed0a
..
20ea162
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-61,7
+61,7
@@
function jQuery(a,c) {
if ( m ) a = jQuery.clean( [ m[1] ] );
// Watch for when an array is passed in
- this.get( a.constructor == Array || a.length && a[0] != undefined && a[0].nodeType ?
+ this.get( a.constructor == Array || a.length && !a.nodeType && a[0] != undefined && a[0].nodeType ?
// Assume that it is an array of DOM Elements
jQuery.merge( a, [] ) :