We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98772fd commit 7427d39Copy full SHA for 7427d39
ui/jquery.ui.core.js
@@ -205,9 +205,16 @@ function visible( element ) {
205
}
206
207
$.extend( $.expr[ ":" ], {
208
- data: function( elem, i, match ) {
209
- return !!$.data( elem, match[ 3 ] );
210
- },
+ data: $.expr.createPseudo ?
+ $.expr.createPseudo(function( dataName ) {
+ return function( elem ) {
211
+ return !!$.data( elem, dataName );
212
+ };
213
+ }) :
214
+ // support: jQuery <1.8
215
+ function( elem, i, match ) {
216
+ return !!$.data( elem, match[ 3 ] );
217
+ },
218
219
focusable: function( element ) {
220
return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
0 commit comments