make dispatchEvent has same feathers with the w3c event flow