aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/deprecated.js2
-rw-r--r--src/selector.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/deprecated.js b/src/deprecated.js
index b2f767cdf..ffeeb4ab7 100644
--- a/src/deprecated.js
+++ b/src/deprecated.js
@@ -43,4 +43,6 @@ jQuery.holdReady = function( hold ) {
}
};
+jQuery.expr[ ":" ] = jQuery.expr.filters = jQuery.expr.pseudos;
+
export { jQuery, jQuery as $ };
diff --git a/src/selector.js b/src/selector.js
index da535718e..29659206e 100644
--- a/src/selector.js
+++ b/src/selector.js
@@ -846,7 +846,7 @@ for ( i in { submit: true, reset: true } ) {
// Easy API for creating new setFilters
function setFilters() {}
-setFilters.prototype = jQuery.expr.filters = jQuery.expr.pseudos;
+setFilters.prototype = jQuery.expr.pseudos;
jQuery.expr.setFilters = new setFilters();
function addCombinator( matcher, combinator, base ) {