Added an event to trigger the hide event outside
Merge pull request #1 from keesschepers/hideevent

Added an event to trigger the hide event outside