Applied dispatchEvent() method.