-
Notifications
You must be signed in to change notification settings - Fork 64
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
Expose "on" -function #114
Comments
Would also need to expose Or expose 'on' functions specalized to window or document:
|
This would be useful for https://developer.mozilla.org/en-US/docs/Web/API/Document/ononline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for all the work that you guys do.
I think the Browser.Events.on -function should be exposed.
With the Html.Events.on function we can listen for custom js-events on elements in the Dom. I miss a way of doing the same for Document through subscriptions. Say I want to use a custom drag and drop library in js, I could listen for this event:
but not make a subscription of this
I think exposing Browser.Events.on would be both useful and consistent with the api in Html.Events.
The text was updated successfully, but these errors were encountered: