in the case that the element is wrapped you should return the outer element here. in the case that the outer element is this.element there us no need to have the widget method as it is handled by the widget factory https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.widget.js#L292