Fixed detection of CustomEvent method
Merge pull request #13 from tehsis/master

Fixed detection of CustomEvent method