Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE9 fails on new CustomEvent when in standards mode #19

Open
rmowder opened this issue Aug 13, 2014 · 0 comments
Open

IE9 fails on new CustomEvent when in standards mode #19

rmowder opened this issue Aug 13, 2014 · 0 comments

Comments

@rmowder
Copy link

rmowder commented Aug 13, 2014

CustomEvent actually exists natively in IE9 when in standards mode however it fails when used so even though it exists it needs to be replaced with the polyfil code.

new CustomEvent('evt'); // results in "Object doesn't support this action"

this condition is the culprit @ line 127

!this.CustomEvent && (function(){ 
    // your code here
 })()

if can be augmented to the following (or similar) to resolve the issue

try {new window.CustomEvent('?')} catch(e) {
  // your code here
}

a similar check should be added around the CustomEvent defineGetter declaration

@rmowder rmowder changed the title IE9 fails on new CustomEvent IE9 fails on new CustomEvent when in standards mode Aug 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant