Skip to content

Commit 3e225de

Browse files
committed
Core: Minor cleanup.
1 parent 527bc44 commit 3e225de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/jquery.ui.core.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ $.fn.extend({
105105
// other browsers return a string
106106
// we ignore the case of nested elements with an explicit value of 0
107107
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
108-
value = parseInt( elem.css( "zIndex" ) );
109-
if ( !isNaN( value ) && value != 0 ) {
108+
value = parseInt( elem.css( "zIndex" ), 10 );
109+
if ( !isNaN( value ) && value !== 0 ) {
110110
return value;
111111
}
112112
}
@@ -116,9 +116,9 @@ $.fn.extend({
116116

117117
return 0;
118118
},
119-
119+
120120
disableSelection: function() {
121-
return this.bind( $.support.selectstart ? "selectstart" : "mousedown" +
121+
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
122122
".ui-disableSelection", function( event ) {
123123
event.preventDefault();
124124
});

0 commit comments

Comments
 (0)