mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Widget: Make .enable() and .disable() act via ._setOptions() instead of ._setOption().
This commit is contained in:
committed by
Scott González
parent
86eaa30994
commit
bc857424a3
4
ui/jquery.ui.widget.js
vendored
4
ui/jquery.ui.widget.js
vendored
@@ -355,10 +355,10 @@ $.Widget.prototype = {
|
||||
},
|
||||
|
||||
enable: function() {
|
||||
return this._setOption( "disabled", false );
|
||||
return this._setOptions({ disabled: false });
|
||||
},
|
||||
disable: function() {
|
||||
return this._setOption( "disabled", true );
|
||||
return this._setOptions({ disabled: true });
|
||||
},
|
||||
|
||||
_on: function( suppressDisabledCheck, element, handlers ) {
|
||||
|
||||
Reference in New Issue
Block a user