Fixed the parameter type on all the onEvent functions
Merge pull request #2 from znahas/master

Fixed the parameter type on all the onEvent functions