From 3e225de13c49f2735916d26c9057d23b84b9b912 Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 12 Oct 2010 09:20:04 -0400 Subject: Core: Minor cleanup. --- ui/jquery.ui.core.js | 8 ++++---- 1 file 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 //
- 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(); }); -- cgit v1.2.3