Skip to content

Commit

Permalink
Widget: Make .enable() and .disable() act via ._setOptions() instead …
Browse files Browse the repository at this point in the history
…of ._setOption().
  • Loading branch information
Gabriel Schulhof authored and scottgonzalez committed Jul 18, 2013
1 parent 86eaa30 commit bc85742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit bc85742

Please sign in to comment.