diff options
author | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2013-07-17 21:00:01 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-07-17 21:00:01 -0400 |
commit | bc857424a36fb33eda80f69454b123b226ec1685 (patch) | |
tree | ba88eaa9e3ed970c307244550c6d0e67564503be /ui | |
parent | 86eaa30994657b650b26388e87ecff679cf93a50 (diff) | |
download | jquery-ui-bc857424a36fb33eda80f69454b123b226ec1685.tar.gz jquery-ui-bc857424a36fb33eda80f69454b123b226ec1685.zip |
Widget: Make .enable() and .disable() act via ._setOptions() instead of ._setOption().
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.widget.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 958f62e55..93daaf1ca 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -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 ) { |