Fix the CostomEvent problem on some android browser

Fix the problem that some android browser do not support CostomEvent.