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
Merge pull request #361 from raadad/patch-1

Making eventData in trigger function optional