Skip to content
Permalink
Browse files

Core: Minor cleanup.

  • Loading branch information...
scottgonzalez committed Oct 12, 2010
1 parent 527bc44 commit 3e225de13c49f2735916d26c9057d23b84b9b912
Showing with 4 additions and 4 deletions.
  1. +4 −4 ui/jquery.ui.core.js
@@ -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();
});

0 comments on commit 3e225de

Please sign in to comment.
You can’t perform that action at this time.