aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-12 09:20:04 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-12 09:20:04 -0400
commit3e225de13c49f2735916d26c9057d23b84b9b912 (patch)
tree665aece76a6adca2109cfd512a9fa8e794e78aa2 /ui/jquery.ui.core.js
parent527bc44afe4784ac7768f221044ad2ccab89d33e (diff)
downloadjquery-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.js8
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();
});