Permalink
Browse files

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

…of ._setOption().
  • Loading branch information...
gabrielschulhof authored and scottgonzalez committed Jul 18, 2013
1 parent 86eaa30 commit bc857424a36fb33eda80f69454b123b226ec1685
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.widget.js
View
@@ -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 ) {

0 comments on commit bc85742

Please sign in to comment.