aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-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();
});