]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Minor cleanup.
authorScott González <scott.gonzalez@gmail.com>
Tue, 12 Oct 2010 13:20:04 +0000 (09:20 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 12 Oct 2010 13:20:04 +0000 (09:20 -0400)
ui/jquery.ui.core.js

index 99aec2a63116541c0d03969eac78eb209f2ffd8e..212bfd4025808816069fc354258eb26bafe510a9 100644 (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();
                        });