mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Minor cleanup.
This commit is contained in:
parent
527bc44afe
commit
3e225de13c
8
ui/jquery.ui.core.js
vendored
8
ui/jquery.ui.core.js
vendored
@ -105,8 +105,8 @@ $.fn.extend({
|
||||
// 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" ) );
|
||||
if ( !isNaN( value ) && value != 0 ) {
|
||||
value = parseInt( elem.css( "zIndex" ), 10 );
|
||||
if ( !isNaN( value ) && value !== 0 ) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@ -116,9 +116,9 @@ $.fn.extend({
|
||||
|
||||
return 0;
|
||||
},
|
||||
|
||||
|
||||
disableSelection: function() {
|
||||
return this.bind( $.support.selectstart ? "selectstart" : "mousedown" +
|
||||
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
||||
".ui-disableSelection", function( event ) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user