mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Spinner: disable text selection on buttons (plus minmal whitespace cleanup)
This commit is contained in:
3
ui/jquery.ui.spinner.js
vendored
3
ui/jquery.ui.spinner.js
vendored
@@ -63,6 +63,7 @@ $.widget( "ui.spinner", {
|
||||
// add buttons
|
||||
.append( self._buttonHtml() )
|
||||
// add behaviours
|
||||
.disableSelection()
|
||||
// TODO: user ._hoverable
|
||||
.hover(function() {
|
||||
if ( !options.disabled ) {
|
||||
@@ -252,7 +253,7 @@ $.widget( "ui.spinner", {
|
||||
this.counter > 20
|
||||
? this.counter > 100
|
||||
? this.counter > 200
|
||||
? 100
|
||||
? 100
|
||||
: 10
|
||||
: 2
|
||||
: 1);
|
||||
|
||||
Reference in New Issue
Block a user