mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Button: spacing.
This commit is contained in:
4
ui/jquery.ui.button.js
vendored
4
ui/jquery.ui.button.js
vendored
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user