mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Adjust data pseudo creation to use new Sizzle pseudo creation for pseudos with arguments.
(cherry picked from commit 2d643032c5
)
This commit is contained in:
parent
98772fd0a1
commit
7427d39b39
13
ui/jquery.ui.core.js
vendored
13
ui/jquery.ui.core.js
vendored
@ -205,9 +205,16 @@ function visible( element ) {
|
||||
}
|
||||
|
||||
$.extend( $.expr[ ":" ], {
|
||||
data: function( elem, i, match ) {
|
||||
return !!$.data( elem, match[ 3 ] );
|
||||
},
|
||||
data: $.expr.createPseudo ?
|
||||
$.expr.createPseudo(function( dataName ) {
|
||||
return function( elem ) {
|
||||
return !!$.data( elem, dataName );
|
||||
};
|
||||
}) :
|
||||
// support: jQuery <1.8
|
||||
function( elem, i, match ) {
|
||||
return !!$.data( elem, match[ 3 ] );
|
||||
},
|
||||
|
||||
focusable: function( element ) {
|
||||
return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
|
||||
|
Loading…
Reference in New Issue
Block a user