From 995b5faec966b608ba15ed2a68c1f1565f77053b Mon Sep 17 00:00:00 2001 From: Maksymenkov Eugene Date: Sun, 8 Dec 2019 23:27:16 +0200 Subject: [PATCH] All: Use expr.pseudos instead of deprecated expr.filters See: https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryexprfilters-is-deprecated-use-jqueryexprpseudos Closes gh-1887 --- ui/effect.js | 6 +++--- ui/widgets/datepicker.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/effect.js b/ui/effect.js index f237556cf..417e83b08 100644 --- a/ui/effect.js +++ b/ui/effect.js @@ -942,12 +942,12 @@ $.fn.extend( { ( function() { -if ( $.expr && $.expr.filters && $.expr.filters.animated ) { - $.expr.filters.animated = ( function( orig ) { +if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) { + $.expr.pseudos.animated = ( function( orig ) { return function( elem ) { return !!$( elem ).data( dataSpaceAnimated ) || orig( elem ); }; - } )( $.expr.filters.animated ); + } )( $.expr.pseudos.animated ); } if ( $.uiBackCompat !== false ) { diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index 63f713ec0..c777a4b0e 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -900,7 +900,7 @@ $.extend( Datepicker.prototype, { inst = this._getInst( obj ), isRTL = this._get( inst, "isRTL" ); - while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden( obj ) ) ) { + while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.pseudos.hidden( obj ) ) ) { obj = obj[ isRTL ? "previousSibling" : "nextSibling" ]; } -- 2.39.5