diff options
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r-- | ui/jquery.ui.button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 2f26e3158..bce54b3af 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -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 ); } |