Skip to content

Commit 27a4fdd

Browse files
committed
Spinner: disable text selection on buttons (plus minmal whitespace cleanup)
1 parent 8c085cd commit 27a4fdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.spinner.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $.widget( "ui.spinner", {
6363
// add buttons
6464
.append( self._buttonHtml() )
6565
// add behaviours
66+
.disableSelection()
6667
// TODO: user ._hoverable
6768
.hover(function() {
6869
if ( !options.disabled ) {
@@ -252,7 +253,7 @@ $.widget( "ui.spinner", {
252253
this.counter > 20
253254
? this.counter > 100
254255
? this.counter > 200
255-
? 100
256+
? 100
256257
: 10
257258
: 2
258259
: 1);

0 commit comments

Comments
 (0)