mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Adjust data pseudo creation to use new Sizzle pseudo creation for pseudos with arguments.
This commit is contained in:
parent
5a952856a0
commit
2d643032c5
9
ui/jquery.ui.core.js
vendored
9
ui/jquery.ui.core.js
vendored
@ -216,7 +216,14 @@ function visible( element ) {
|
||||
}
|
||||
|
||||
$.extend( $.expr[ ":" ], {
|
||||
data: function( elem, i, match ) {
|
||||
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 ] );
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user