show and hidden events not working

show and hidden events not working

Hey guys i came across the following lines on modal.js : 

  1.     $target.one('show.bs.modal', function (showEvent) {
  2.       if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
  3.       $target.one('hidden.bs.modal', function () {
  4.         $this.is(':visible') && $this.trigger('focus')
  5.       })
  6.     })
These are all event being attached right ? , well i was wondering where can i find the documentation for the show Jquery event ? , because i tried writing my own programme using the show and hidden event and none of the events seems to be working . check here :