Added dispatchEvent() wrapper method.
Merge pull request #4556 from robertpustulka/3.0-dispatch-event

3.0 Event: dispatchEvent() wrapper