mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
98b539171b
commit
995b5faec9
@ -942,12 +942,12 @@ $.fn.extend( {
|
|||||||
|
|
||||||
( function() {
|
( function() {
|
||||||
|
|
||||||
if ( $.expr && $.expr.filters && $.expr.filters.animated ) {
|
if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
|
||||||
$.expr.filters.animated = ( function( orig ) {
|
$.expr.pseudos.animated = ( function( orig ) {
|
||||||
return function( elem ) {
|
return function( elem ) {
|
||||||
return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
|
return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
|
||||||
};
|
};
|
||||||
} )( $.expr.filters.animated );
|
} )( $.expr.pseudos.animated );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $.uiBackCompat !== false ) {
|
if ( $.uiBackCompat !== false ) {
|
||||||
|
@ -900,7 +900,7 @@ $.extend( Datepicker.prototype, {
|
|||||||
inst = this._getInst( obj ),
|
inst = this._getInst( obj ),
|
||||||
isRTL = this._get( inst, "isRTL" );
|
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" ];
|
obj = obj[ isRTL ? "previousSibling" : "nextSibling" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user