Skip to content
Permalink
Browse files
Fixed annoying $()/Array bug.
  • Loading branch information
jeresig committed Jul 28, 2006
1 parent 785d500 commit 2f023fdd210a509353ae634bd1cd5d2fec59b0ce
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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, [] ) :

0 comments on commit 2f023fd

Please sign in to comment.