aboutsummaryrefslogtreecommitdiffstats
path: root/ui/data.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-04-09 23:36:00 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-15 00:38:30 +0200
commitdaa6fb55b35065c49c0ffc879c94627bbf85404c (patch)
treec1c90efc224aa82614758262b4e308cc8354ac65 /ui/data.js
parentac8b1e4eee8682e6825730c4823036a90031edad (diff)
downloadjquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.tar.gz
jquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.zip
All: Drop support for jQueries different than the latest for each major
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4. Closes gh-2249
Diffstat (limited to 'ui/data.js')
-rw-r--r--ui/data.js16
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 );
+ };
+ } )
} );
} );