diff options
Diffstat (limited to 'ui/data.js')
-rw-r--r-- | ui/data.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/ui/data.js b/ui/data.js index 5a1c650d4..e37461ac7 100644 --- a/ui/data.js +++ b/ui/data.js @@ -28,16 +28,10 @@ "use strict"; return $.extend( $.expr.pseudos, { - 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 ] ); - } + data: $.expr.createPseudo( function( dataName ) { + return function( elem ) { + return !!$.data( elem, dataName ); + }; + } ) } ); } ); |