Fixed annoying $()/Array bug.

1.7/enhancement_8685
John Resig 2006-07-28 03:32:43 +00:00
parent 785d500cac
commit 2f023fdd21
1 changed files with 1 additions and 1 deletions

2
jquery/jquery.js vendored
View File

@ -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, [] ) :