no need for enable and disable methods like this this is handled by the widget factory already https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.widget.js#L357