-
Notifications
You must be signed in to change notification settings - Fork 110
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
The event argument is not passed for listners attached to a JS object #102
Comments
A quick solution I just found was to pass the handler as event argument to the event From https://github.com/fat/bean/blob/master/src/bean.js#L667:
To:
|
Duplicate of #80 Yes we should fix this. |
@ryanve let's just get this done, want to do up a PR to make the needed changes? |
interesting that this only comes up now. what would one do with an event object from a custom event? |
@rvagg I can tackle this within the next week or so. @ded Not lots but including it would help normalize the handler signature between all events: native, custom, triggers. For custom events, supporting |
that's actually a great idea and would work for a first pass. we should probably bump up a minor version after this is implemented |
Sounds like a plan. |
events attached to DOM object pass back an event argument
but events attached to a JS objects do not receive the event argument
the above outputs undefined.
The implication is that:
.
The text was updated successfully, but these errors were encountered: