Skip to content

Commit

Permalink
reverted change for jquery#2114
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jan 14, 2008
1 parent 2fa8556 commit c27cbdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Expand Up @@ -38,7 +38,7 @@ jQuery.fn = jQuery.prototype = {
selector = selector || document;

// Handle $(DOMElement)
if ( selector.nodeType && !selector.length ) {
if ( selector.nodeType ) {
this[0] = selector;
this.length = 1;
return this;
Expand Down Expand Up @@ -93,7 +93,7 @@ jQuery.fn = jQuery.prototype = {

// HANDLE: $(arraylike)
// Watch for when an array-like object, contains DOM nodes, is passed in as the selector
(selector.jquery || selector.length && selector != window && selector[0] != undefined && selector[0].nodeType) && jQuery.makeArray( selector ) ||
(selector.jquery || selector.length && selector != window && !selector.nodeType && selector[0] != undefined && selector[0].nodeType) && jQuery.makeArray( selector ) ||

// HANDLE: $(*)
[ selector ] );
Expand Down

0 comments on commit c27cbdc

Please sign in to comment.