Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed annoying $()/Array bug.
  • Loading branch information
jeresig committed Jul 28, 2006
1 parent 785d500 commit 2f023fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery/jquery.js
Expand Up @@ -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, [] ) :

Expand Down

0 comments on commit 2f023fd

Please sign in to comment.