Moved the event detection. Supporting CustomEvent if createEvent is not present
Merge pull request #8 from tehsis/master

Try to use CustomEvent. If not available, use createEvent. Finally return false.