-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Why I can't name my event as 'constructor'? #3999
Comments
FWIW, this is not the same bug but somehow related to #1495, which was closed as wontfix. |
This can be fixed by ensuring the var handlers = _.isArray(events[name]) ? events[name] : (events[name] = []); Thoughts @jridgewell @akre54 |
Eh. I think our short circuit pattern is fairly common in JS. The advice around edge cases in #1495 applies here too. |
Can we just drop IE8 now? Hell, even IE8 can do a prototype-less object with black magic. |
What you got in mind? Object.create everywhere? |
@jridgewell my god. |
You're not kidding, I'm pretty sure that |
That's insane |
Cliched genius and madness quote. 😉 |
This changes all the places where object literals were being used to use prototypless-objects. This addresses the issue raised in jashkenas#3999
Throws exception:
Is it a bug?
I can reproduce it in developer console on backbonejs.org site.
The text was updated successfully, but these errors were encountered: