Adding show/shown/hide/hidden methods like jQuery UI

I tried using this.element.toggle('customevent') but for some reason this was firing multiple times. My guess is it's related to the use of both click and focus on the input as well as a generic document click outside the modal to close.