Widget: Make .enable() and .disable() act via ._setOptions() instead of ._setOption().

This commit is contained in:
Gabriel Schulhof 2013-07-17 21:00:01 -04:00 committed by Scott González
parent 86eaa30994
commit bc857424a3

View File

@ -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 ) {