Making eventData in trigger function optional

sometimes I just want to trigger an event, however I cannot without passing an empty object as the second argument, this seems to work well for me in all my cases