]> source.dussan.org Git - jquery-ui.git/commitdiff
Button: spacing.
authorScott González <scott.gonzalez@gmail.com>
Tue, 16 Mar 2010 04:07:23 +0000 (04:07 +0000)
committerScott González <scott.gonzalez@gmail.com>
Tue, 16 Mar 2010 04:07:23 +0000 (04:07 +0000)
ui/jquery.ui.button.js

index 2f26e3158765b43abaee56ae46a4778aca625da0..bce54b3af7d0fecf9a18764e3402f67079d06d11 100644 (file)
@@ -69,7 +69,7 @@ $.widget( "ui.button", {
                        options.label = this.buttonElement.html();
                }
 
-               if ( this.element.is(":disabled") ) {
+               if ( this.element.is( ":disabled" ) ) {
                        options.disabled = true;
                }
 
@@ -240,7 +240,7 @@ $.widget( "ui.button", {
        },
 
        refresh: function() {
-               var isDisabled = this.element.is(":disabled");
+               var isDisabled = this.element.is( ":disabled" );
                if ( isDisabled !== this.options.disabled ) {
                        this._setOption( "disabled", isDisabled );
                }