6
6
* Released under the MIT license.
7
7
* http://jquery.org/license
8
8
*
9
- * http://api.jqueryui.com/category/ui-core/
10
9
*/
10
+
11
+ //>>label: Core
12
+ //>>group: UI Core
13
+ //>>description: The core of jQuery UI, required for all interactions and widgets.
14
+ //>>docs: http://api.jqueryui.com/category/ui-core/
15
+ //>>demos: http://jqueryui.com/
16
+
11
17
( function ( factory ) {
12
18
if ( typeof define === "function" && define . amd ) {
13
19
@@ -136,14 +142,6 @@ $.extend( $.expr[ ":" ], {
136
142
}
137
143
} ) ;
138
144
139
- // support: document in RTL mode
140
- $ ( function ( ) {
141
- $ . ui . isRtl = ( $ ( "body" ) . attr ( "dir" ) || $ ( "html" ) . attr ( "dir" ) || "" ) . toLowerCase ( ) === "rtl" ;
142
- if ( $ . ui . isRtl ) {
143
- $ ( "body" ) . addClass ( "ui-rtl" ) ;
144
- }
145
- } ) ;
146
-
147
145
// support: jQuery <1.8
148
146
if ( ! $ ( "<a>" ) . outerWidth ( 1 ) . jquery ) {
149
147
$ . each ( [ "Width" , "Height" ] , function ( i , name ) {
@@ -217,22 +215,6 @@ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
217
215
$ . ui . ie = ! ! / m s i e [ \w . ] + / . exec ( navigator . userAgent . toLowerCase ( ) ) ;
218
216
219
217
$ . fn . extend ( {
220
- focus : ( function ( orig ) {
221
- return function ( delay , fn ) {
222
- return typeof delay === "number" ?
223
- this . each ( function ( ) {
224
- var elem = this ;
225
- setTimeout ( function ( ) {
226
- $ ( elem ) . focus ( ) ;
227
- if ( fn ) {
228
- fn . call ( elem ) ;
229
- }
230
- } , delay ) ;
231
- } ) :
232
- orig . apply ( this , arguments ) ;
233
- } ;
234
- } ) ( $ . fn . focus ) ,
235
-
236
218
disableSelection : ( function ( ) {
237
219
var eventType = "onselectstart" in document . createElement ( "div" ) ?
238
220
"selectstart" :
@@ -247,35 +229,6 @@ $.fn.extend({
247
229
248
230
enableSelection : function ( ) {
249
231
return this . unbind ( ".ui-disableSelection" ) ;
250
- } ,
251
-
252
- zIndex : function ( zIndex ) {
253
- if ( zIndex !== undefined ) {
254
- return this . css ( "zIndex" , zIndex ) ;
255
- }
256
-
257
- if ( this . length ) {
258
- var elem = $ ( this [ 0 ] ) , position , value ;
259
- while ( elem . length && elem [ 0 ] !== document ) {
260
- // Ignore z-index if position is set to a value where z-index is ignored by the browser
261
- // This makes behavior of this function consistent across browsers
262
- // WebKit always returns auto if the element is positioned
263
- position = elem . css ( "position" ) ;
264
- if ( position === "absolute" || position === "relative" || position === "fixed" ) {
265
- // IE returns 0 when zIndex is not specified
266
- // other browsers return a string
267
- // we ignore the case of nested elements with an explicit value of 0
268
- // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
269
- value = parseInt ( elem . css ( "zIndex" ) , 10 ) ;
270
- if ( ! isNaN ( value ) && value !== 0 ) {
271
- return value ;
272
- }
273
- }
274
- elem = elem . parent ( ) ;
275
- }
276
- }
277
-
278
- return 0 ;
279
232
}
280
233
} ) ;
281
234
0 commit comments