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 5a95285 commit 2d64303Copy full SHA for 2d64303
ui/jquery.ui.core.js
@@ -216,9 +216,16 @@ function visible( element ) {
216
}
217
218
$.extend( $.expr[ ":" ], {
219
- data: function( elem, i, match ) {
220
- return !!$.data( elem, match[ 3 ] );
221
- },
+ data: $.expr.createPseudo ?
+ $.expr.createPseudo(function( dataName ) {
+ return function( elem ) {
222
+ return !!$.data( elem, dataName );
223
+ };
224
+ }) :
225
+ // support: jQuery <1.8
226
+ function( elem, i, match ) {
227
+ return !!$.data( elem, match[ 3 ] );
228
+ },
229
230
focusable: function( element ) {
231
return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
0 commit comments