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

default method causes error in IE7 #2

Open
boxxxie opened this issue Apr 25, 2012 · 2 comments
Open

default method causes error in IE7 #2

boxxxie opened this issue Apr 25, 2012 · 2 comments

Comments

@boxxxie
Copy link

boxxxie commented Apr 25, 2012

i'm not sure exactly why, as my college discovered this bug.

@hughfdjackson
Copy link

I assume that this is because it's a reserved word; not valid as an identifierName (i.e. the name of a property) until es5: http://es5.github.com/#x7.6.1.

@julien-f
Copy link
Contributor

You should be able to use the dynamic syntax:

stopLightColor['default'](function () { return 'unknown'; });

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

3 participants