Pass the event variable into onClick/onClose/onErrorNotification handlers

This is useful when the event handler needs to access the event itself (such as finding the srcElement)