]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget: Make .enable() and .disable() act via ._setOptions() instead of ._setOption().
authorGabriel Schulhof <gabriel.schulhof@intel.com>
Thu, 18 Jul 2013 01:00:01 +0000 (21:00 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 18 Jul 2013 01:00:01 +0000 (21:00 -0400)
ui/jquery.ui.widget.js

index 958f62e551643cdbb1b1e05c1411ef92e16db5c2..93daaf1ca0856d6288073d24cbe6767eb68ec227 100644 (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 ) {