Core: Minor cleanup.

This commit is contained in:
Scott González 2010-10-12 09:20:04 -04:00
parent 527bc44afe
commit 3e225de13c

View File

@ -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();
});