Skip to content

Commit faf87d9

Browse files
committed
Core: Remove .zIndex()
Fixes #9156
1 parent 89ed68f commit faf87d9

File tree

5 files changed

+0
-187
lines changed

5 files changed

+0
-187
lines changed

build/tasks/testswarm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ var versions = {
1515
"Autocomplete": "autocomplete/autocomplete.html",
1616
"Button": "button/button.html",
1717
"Core": "core/core.html",
18-
"Core_deprecated": "core/core_deprecated.html",
1918
"Datepicker": "datepicker/datepicker.html",
2019
"Dialog": "dialog/dialog.html",
2120
"Draggable": "draggable/draggable.html",

tests/unit/all.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"autocomplete/autocomplete.html",
2121
"button/button.html",
2222
"core/core.html",
23-
"core/core_deprecated.html",
2423
"datepicker/datepicker.html",
2524
"dialog/dialog.html",
2625
"draggable/draggable.html",

tests/unit/core/core_deprecated.html

Lines changed: 0 additions & 132 deletions
This file was deleted.

tests/unit/core/core_deprecated.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

ui/core.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -223,35 +223,6 @@ $.fn.extend({
223223

224224
enableSelection: function() {
225225
return this.unbind( ".ui-disableSelection" );
226-
},
227-
228-
zIndex: function( zIndex ) {
229-
if ( zIndex !== undefined ) {
230-
return this.css( "zIndex", zIndex );
231-
}
232-
233-
if ( this.length ) {
234-
var elem = $( this[ 0 ] ), position, value;
235-
while ( elem.length && elem[ 0 ] !== document ) {
236-
// Ignore z-index if position is set to a value where z-index is ignored by the browser
237-
// This makes behavior of this function consistent across browsers
238-
// WebKit always returns auto if the element is positioned
239-
position = elem.css( "position" );
240-
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
241-
// IE returns 0 when zIndex is not specified
242-
// other browsers return a string
243-
// we ignore the case of nested elements with an explicit value of 0
244-
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
245-
value = parseInt( elem.css( "zIndex" ), 10 );
246-
if ( !isNaN( value ) && value !== 0 ) {
247-
return value;
248-
}
249-
}
250-
elem = elem.parent();
251-
}
252-
}
253-
254-
return 0;
255226
}
256227
});
257228

0 commit comments

Comments
 (0)