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
This commit is contained in:
Maksymenkov Eugene 2019-12-08 23:27:16 +02:00 committed by Michał Gołębiowski-Owczarek
parent 98b539171b
commit 995b5faec9
2 changed files with 4 additions and 4 deletions

View File

@ -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 ) {

View File

@ -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" ];
}