diff options
author | Scott González <scott.gonzalez@gmail.com> | 2014-10-20 19:29:35 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-10-20 19:29:35 -0400 |
commit | faf87d992455280182edef015c8733313744a739 (patch) | |
tree | 896b9f1ce69dd8fda6de9ea2a4a5b8f7a80b1a83 /ui/core.js | |
parent | 89ed68fb05ed8dff281d0de941a6d1164f2e66f1 (diff) | |
download | jquery-ui-faf87d992455280182edef015c8733313744a739.tar.gz jquery-ui-faf87d992455280182edef015c8733313744a739.zip |
Core: Remove .zIndex()
Fixes #9156
Diffstat (limited to 'ui/core.js')
-rw-r--r-- | ui/core.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ui/core.js b/ui/core.js index 652884e6b..5e5f6d574 100644 --- a/ui/core.js +++ b/ui/core.js @@ -223,35 +223,6 @@ $.fn.extend({ enableSelection: function() { return this.unbind( ".ui-disableSelection" ); - }, - - zIndex: function( zIndex ) { - if ( zIndex !== undefined ) { - return this.css( "zIndex", zIndex ); - } - - if ( this.length ) { - var elem = $( this[ 0 ] ), position, value; - while ( elem.length && elem[ 0 ] !== document ) { - // Ignore z-index if position is set to a value where z-index is ignored by the browser - // This makes behavior of this function consistent across browsers - // WebKit always returns auto if the element is positioned - position = elem.css( "position" ); - if ( position === "absolute" || position === "relative" || position === "fixed" ) { - // IE returns 0 when zIndex is not specified - // other browsers return a string - // we ignore the case of nested elements with an explicit value of 0 - // <div style="z-index: -10;"><div style="z-index: 0;"></div></div> - value = parseInt( elem.css( "zIndex" ), 10 ); - if ( !isNaN( value ) && value !== 0 ) { - return value; - } - } - elem = elem.parent(); - } - } - - return 0; } }); |