mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Core: Remove deprecated context and selector properties
Fixes gh-1908 Closes gh-2000
This commit is contained in:
@@ -73,12 +73,9 @@ var rootjQuery,
|
||||
|
||||
if ( elem ) {
|
||||
// Inject the element directly into the jQuery object
|
||||
this.length = 1;
|
||||
this[0] = elem;
|
||||
this.length = 1;
|
||||
}
|
||||
|
||||
this.context = document;
|
||||
this.selector = selector;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -94,7 +91,7 @@ var rootjQuery,
|
||||
|
||||
// HANDLE: $(DOMElement)
|
||||
} else if ( selector.nodeType ) {
|
||||
this.context = this[0] = selector;
|
||||
this[0] = selector;
|
||||
this.length = 1;
|
||||
return this;
|
||||
|
||||
@@ -107,11 +104,6 @@ var rootjQuery,
|
||||
selector( jQuery );
|
||||
}
|
||||
|
||||
if ( selector.selector !== undefined ) {
|
||||
this.selector = selector.selector;
|
||||
this.context = selector.context;
|
||||
}
|
||||
|
||||
return jQuery.makeArray( selector, this );
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user