Core: Remove deprecated context and selector properties

Fixes gh-1908
Closes gh-2000
This commit is contained in:
Dave Methvin
2015-01-08 13:35:28 -05:00
parent 89ce0af2cf
commit 0ea8c32863
5 changed files with 7 additions and 65 deletions

View File

@@ -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 );
};