aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2015-01-08 13:35:28 -0500
committerDave Methvin <dave.methvin@gmail.com>2015-01-11 21:11:56 -0500
commit0ea8c32863af31fb5cfc184e8d513bbae35583e8 (patch)
tree28aa7d751e6f5ee5a785c890b82b767324eb9410 /src
parent89ce0af2cf7f001647e74fc1de92ce94a51fd5c2 (diff)
downloadjquery-0ea8c32863af31fb5cfc184e8d513bbae35583e8.tar.gz
jquery-0ea8c32863af31fb5cfc184e8d513bbae35583e8.zip
Core: Remove deprecated context and selector properties
Fixes gh-1908 Closes gh-2000
Diffstat (limited to 'src')
-rw-r--r--src/core.js4
-rw-r--r--src/core/init.js12
-rw-r--r--src/traversing/findFilter.js5
3 files changed, 3 insertions, 18 deletions
diff --git a/src/core.js b/src/core.js
index 6ce1027a0..980af4e89 100644
--- a/src/core.js
+++ b/src/core.js
@@ -40,9 +40,6 @@ jQuery.fn = jQuery.prototype = {
constructor: jQuery,
- // Start with an empty selector
- selector: "",
-
// The default length of a jQuery object is 0
length: 0,
@@ -71,7 +68,6 @@ jQuery.fn = jQuery.prototype = {
// Add the old object onto the stack (as a reference)
ret.prevObject = this;
- ret.context = this.context;
// Return the newly-formed element set
return ret;
diff --git a/src/core/init.js b/src/core/init.js
index d261cd46b..f49b560b6 100644
--- a/src/core/init.js
+++ b/src/core/init.js
@@ -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 );
};
diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js
index 840229bff..eee3b6bee 100644
--- a/src/traversing/findFilter.js
+++ b/src/traversing/findFilter.js
@@ -72,10 +72,7 @@ jQuery.fn.extend({
jQuery.find( selector, self[ i ], ret );
}
- // Needed because $( selector, context ) becomes $( context ).find( selector )
- ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
- ret.selector = this.selector ? this.selector + " " + selector : selector;
- return ret;
+ return this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
},
filter: function( selector ) {
return this.pushStack( winnow(this, selector || [], false) );