Skip to content

Commit

Permalink
All: Use expr.pseudos instead of deprecated expr.filters
Browse files Browse the repository at this point in the history
  • Loading branch information
aTei authored and mgol committed Dec 8, 2019
1 parent 98b5391 commit 995b5fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ui/effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion ui/widgets/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
}

Expand Down

0 comments on commit 995b5fa

Please sign in to comment.