A ployfill for CustomEvent