From bc857424a36fb33eda80f69454b123b226ec1685 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Wed, 17 Jul 2013 21:00:01 -0400 Subject: Widget: Make .enable() and .disable() act via ._setOptions() instead of ._setOption(). --- ui/jquery.ui.widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') 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 ) { -- cgit v1.2.3