Spinner: disable text selection on buttons (plus minmal whitespace cleanup)

This commit is contained in:
Jörn Zaefferer 2011-05-30 20:08:58 +02:00
parent 8c085cd27c
commit 27a4fdd8ed

View File

@ -63,6 +63,7 @@ $.widget( "ui.spinner", {
// add buttons // add buttons
.append( self._buttonHtml() ) .append( self._buttonHtml() )
// add behaviours // add behaviours
.disableSelection()
// TODO: user ._hoverable // TODO: user ._hoverable
.hover(function() { .hover(function() {
if ( !options.disabled ) { if ( !options.disabled ) {
@ -252,7 +253,7 @@ $.widget( "ui.spinner", {
this.counter > 20 this.counter > 20
? this.counter > 100 ? this.counter > 100
? this.counter > 200 ? this.counter > 200
? 100 ? 100
: 10 : 10
: 2 : 2
: 1); : 1);