Fixed #2474: Dispatch event failure in chrome.