Skip to content

Commit bc85742

Browse files
Gabriel Schulhofscottgonzalez
Gabriel Schulhof
authored andcommitted
Widget: Make .enable() and .disable() act via ._setOptions() instead of ._setOption().
1 parent 86eaa30 commit bc85742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,10 @@ $.Widget.prototype = {
355355
},
356356

357357
enable: function() {
358-
return this._setOption( "disabled", false );
358+
return this._setOptions({ disabled: false });
359359
},
360360
disable: function() {
361-
return this._setOption( "disabled", true );
361+
return this._setOptions({ disabled: true });
362362
},
363363

364364
_on: function( suppressDisabledCheck, element, handlers ) {

0 commit comments

Comments
 (0)