diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-12 09:20:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-12 09:20:04 -0400 |
commit | 3e225de13c49f2735916d26c9057d23b84b9b912 (patch) | |
tree | 665aece76a6adca2109cfd512a9fa8e794e78aa2 /ui/jquery.ui.core.js | |
parent | 527bc44afe4784ac7768f221044ad2ccab89d33e (diff) | |
download | jquery-ui-3e225de13c49f2735916d26c9057d23b84b9b912.tar.gz jquery-ui-3e225de13c49f2735916d26c9057d23b84b9b912.zip |
Core: Minor cleanup.
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r-- | ui/jquery.ui.core.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index 99aec2a63..212bfd402 100644 --- a/ui/jquery.ui.core.js +++ b/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(); }); |