Allow defining event handling functions that take the event as an arg.