]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: disable text selection on buttons (plus minmal whitespace cleanup)
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 30 May 2011 18:08:58 +0000 (20:08 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 30 May 2011 18:08:58 +0000 (20:08 +0200)
ui/jquery.ui.spinner.js

index 4a23aca5383266672736030184f29dab043a9cb1..b4cefc9820ccb1796fcff4909fda7f80b81de70f 100644 (file)
@@ -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);