14
14
//>>docs: http://api.jqueryui.com/category/ui-core/
15
15
//>>demos: http://jqueryui.com/
16
16
17
- ( function ( factory ) {
17
+ ( function ( factory ) {
18
18
if ( typeof define === "function" && define . amd ) {
19
19
20
20
// AMD. Register as an anonymous module.
24
24
// Browser globals
25
25
factory ( jQuery ) ;
26
26
}
27
- } ( function ( $ ) {
27
+ } ( function ( $ ) {
28
28
29
29
// $.ui might exist from components with no dependencies, e.g., $.ui.position
30
30
$ . ui = $ . ui || { } ;
@@ -75,10 +75,10 @@ $.extend( $.ui, {
75
75
$ ( element ) . blur ( ) ;
76
76
}
77
77
}
78
- } ) ;
78
+ } ) ;
79
79
80
80
// plugins
81
- $ . fn . extend ( {
81
+ $ . fn . extend ( {
82
82
scrollParent : function ( includeHidden ) {
83
83
var position = this . css ( "position" ) ,
84
84
excludeStaticParent = position === "absolute" ,
@@ -89,31 +89,31 @@ $.fn.extend({
89
89
return false ;
90
90
}
91
91
return overflowRegex . test ( parent . css ( "overflow" ) + parent . css ( "overflow-y" ) + parent . css ( "overflow-x" ) ) ;
92
- } ) . eq ( 0 ) ;
92
+ } ) . eq ( 0 ) ;
93
93
94
94
return position === "fixed" || ! scrollParent . length ? $ ( this [ 0 ] . ownerDocument || document ) : scrollParent ;
95
95
} ,
96
96
97
- uniqueId : ( function ( ) {
97
+ uniqueId : ( function ( ) {
98
98
var uuid = 0 ;
99
99
100
100
return function ( ) {
101
- return this . each ( function ( ) {
101
+ return this . each ( function ( ) {
102
102
if ( ! this . id ) {
103
103
this . id = "ui-id-" + ( ++ uuid ) ;
104
104
}
105
- } ) ;
105
+ } ) ;
106
106
} ;
107
- } ) ( ) ,
107
+ } ) ( ) ,
108
108
109
109
removeUniqueId : function ( ) {
110
- return this . each ( function ( ) {
110
+ return this . each ( function ( ) {
111
111
if ( / ^ u i - i d - \d + $ / . test ( this . id ) ) {
112
112
$ ( this ) . removeAttr ( "id" ) ;
113
113
}
114
- } ) ;
114
+ } ) ;
115
115
}
116
- } ) ;
116
+ } ) ;
117
117
118
118
// selectors
119
119
function focusable ( element , isTabIndexNotNaN ) {
@@ -132,25 +132,25 @@ function focusable( element, isTabIndexNotNaN ) {
132
132
! element . disabled :
133
133
"a" === nodeName ?
134
134
element . href || isTabIndexNotNaN :
135
- isTabIndexNotNaN ) &&
135
+ isTabIndexNotNaN ) &&
136
136
// the element and all of its ancestors must be visible
137
137
visible ( element ) ;
138
138
}
139
139
140
140
function visible ( element ) {
141
141
return $ . expr . filters . visible ( element ) &&
142
- ! $ ( element ) . parents ( ) . addBack ( ) . filter ( function ( ) {
142
+ ! $ ( element ) . parents ( ) . addBack ( ) . filter ( function ( ) {
143
143
return $ . css ( this , "visibility" ) === "hidden" ;
144
- } ) . length ;
144
+ } ) . length ;
145
145
}
146
146
147
147
$ . extend ( $ . expr [ ":" ] , {
148
148
data : $ . expr . createPseudo ?
149
- $ . expr . createPseudo ( function ( dataName ) {
149
+ $ . expr . createPseudo ( function ( dataName ) {
150
150
return function ( elem ) {
151
151
return ! ! $ . data ( elem , dataName ) ;
152
152
} ;
153
- } ) :
153
+ } ) :
154
154
// support: jQuery <1.8
155
155
function ( elem , i , match ) {
156
156
return ! ! $ . data ( elem , match [ 3 ] ) ;
@@ -165,7 +165,7 @@ $.extend( $.expr[ ":" ], {
165
165
isTabIndexNaN = isNaN ( tabIndex ) ;
166
166
return ( isTabIndexNaN || tabIndex >= 0 ) && focusable ( element , ! isTabIndexNaN ) ;
167
167
}
168
- } ) ;
168
+ } ) ;
169
169
170
170
// support: jQuery 1.7 only
171
171
// Not a great way to check versions, but since we only support 1.7+ and only
@@ -197,7 +197,7 @@ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
197
197
if ( margin ) {
198
198
size -= parseFloat ( $ . css ( elem , "margin" + this ) ) || 0 ;
199
199
}
200
- } ) ;
200
+ } ) ;
201
201
return size ;
202
202
}
203
203
@@ -206,21 +206,21 @@ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
206
206
return orig [ "inner" + name ] . call ( this ) ;
207
207
}
208
208
209
- return this . each ( function ( ) {
209
+ return this . each ( function ( ) {
210
210
$ ( this ) . css ( type , reduce ( this , size ) + "px" ) ;
211
- } ) ;
211
+ } ) ;
212
212
} ;
213
213
214
- $ . fn [ "outer" + name ] = function ( size , margin ) {
214
+ $ . fn [ "outer" + name ] = function ( size , margin ) {
215
215
if ( typeof size !== "number" ) {
216
216
return orig [ "outer" + name ] . call ( this , size ) ;
217
217
}
218
218
219
- return this . each ( function ( ) {
220
- $ ( this ) . css ( type , reduce ( this , size , true , margin ) + "px" ) ;
221
- } ) ;
219
+ return this . each ( function ( ) {
220
+ $ ( this ) . css ( type , reduce ( this , size , true , margin ) + "px" ) ;
221
+ } ) ;
222
222
} ;
223
- } ) ;
223
+ } ) ;
224
224
225
225
$ . fn . addBack = function ( selector ) {
226
226
return this . add ( selector == null ?
@@ -232,23 +232,23 @@ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
232
232
// deprecated
233
233
$ . ui . ie = ! ! / m s i e [ \w . ] + / . exec ( navigator . userAgent . toLowerCase ( ) ) ;
234
234
235
- $ . fn . extend ( {
236
- disableSelection : ( function ( ) {
235
+ $ . fn . extend ( {
236
+ disableSelection : ( function ( ) {
237
237
var eventType = "onselectstart" in document . createElement ( "div" ) ?
238
238
"selectstart" :
239
239
"mousedown" ;
240
240
241
241
return function ( ) {
242
242
return this . bind ( eventType + ".ui-disableSelection" , function ( event ) {
243
243
event . preventDefault ( ) ;
244
- } ) ;
244
+ } ) ;
245
245
} ;
246
- } ) ( ) ,
246
+ } ) ( ) ,
247
247
248
248
enableSelection : function ( ) {
249
249
return this . unbind ( ".ui-disableSelection" ) ;
250
250
}
251
- } ) ;
251
+ } ) ;
252
252
253
253
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
254
254
$ . ui . plugin = {
@@ -280,4 +280,4 @@ $.ui.plugin = {
280
280
}
281
281
} ;
282
282
283
- } ) ) ;
283
+ } ) ) ;
0 commit comments