File tree Expand file tree Collapse file tree 6 files changed +45
-13
lines changed Expand file tree Collapse file tree 6 files changed +45
-13
lines changed Original file line number Diff line number Diff line change 1
1
define ( [
2
2
"jquery" ,
3
- "ui/core"
3
+ "ui/core" ,
4
+ "ui/data"
4
5
] , function ( $ ) {
5
6
6
7
module ( "core - selectors" ) ;
Original file line number Diff line number Diff line change 23
23
define ( [
24
24
"jquery" ,
25
25
"./core" ,
26
+ "./data" ,
26
27
"./version" ,
27
28
"./widget"
28
29
] , factory ) ;
Original file line number Diff line number Diff line change 20
20
// AMD. Register as an anonymous module.
21
21
define ( [
22
22
"jquery" ,
23
+ "./data" ,
23
24
"./version" ] , factory ) ;
24
25
} else {
25
26
@@ -207,17 +208,6 @@ function visible( element ) {
207
208
}
208
209
209
210
$ . extend ( $ . expr [ ":" ] , {
210
- data : $ . expr . createPseudo ?
211
- $ . expr . createPseudo ( function ( dataName ) {
212
- return function ( elem ) {
213
- return ! ! $ . data ( elem , dataName ) ;
214
- } ;
215
- } ) :
216
- // support: jQuery <1.8
217
- function ( elem , i , match ) {
218
- return ! ! $ . data ( elem , match [ 3 ] ) ;
219
- } ,
220
-
221
211
focusable : function ( element ) {
222
212
return focusable ( element , $ . attr ( element , "tabindex" ) != null ) ;
223
213
} ,
Original file line number Diff line number Diff line change
1
+ /*!
2
+ * jQuery UI :data @VERSION
3
+ * http://jqueryui.com
4
+ *
5
+ * Copyright jQuery Foundation and other contributors
6
+ * Released under the MIT license.
7
+ * http://jquery.org/license
8
+ */
9
+
10
+ //>>label: :data
11
+ //>>group: Core
12
+ //>>description: Selects elements which have data stored under the specified key.
13
+ //>>docs: http://api.jqueryui.com/data-selector/
14
+
15
+ ( function ( factory ) {
16
+ if ( typeof define === "function" && define . amd ) {
17
+
18
+ // AMD. Register as an anonymous module.
19
+ define ( [ "jquery" , "./version" ] , factory ) ;
20
+ } else {
21
+
22
+ // Browser globals
23
+ factory ( jQuery ) ;
24
+ }
25
+ } ( function ( $ ) {
26
+ return $ . extend ( $ . expr [ ":" ] , {
27
+ data : $ . expr . createPseudo ?
28
+ $ . expr . createPseudo ( function ( dataName ) {
29
+ return function ( elem ) {
30
+ return ! ! $ . data ( elem , dataName ) ;
31
+ } ;
32
+ } ) :
33
+ // support: jQuery <1.8
34
+ function ( elem , i , match ) {
35
+ return ! ! $ . data ( elem , match [ 3 ] ) ;
36
+ }
37
+ } ) ;
38
+ } ) ) ;
Original file line number Diff line number Diff line change 21
21
define ( [
22
22
"jquery" ,
23
23
"./core" ,
24
- "./version " ,
24
+ "./data " ,
25
25
"./mouse" ,
26
+ "./version" ,
26
27
"./widget"
27
28
] , factory ) ;
28
29
} else {
Original file line number Diff line number Diff line change 21
21
define ( [
22
22
"jquery" ,
23
23
"./core" ,
24
+ "./data" ,
24
25
"./mouse" ,
25
26
"./version" ,
26
27
"./widget"
You can’t perform that action at this time.
0 commit comments