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

Are web_sys methods auto generated? #2245

Closed
Fallenstedt opened this issue Jul 19, 2020 · 2 comments
Closed

Are web_sys methods auto generated? #2245

Fallenstedt opened this issue Jul 19, 2020 · 2 comments
Labels

Comments

@Fallenstedt
Copy link

Fallenstedt commented Jul 19, 2020

Summary

I'm working with mouse events for my project, and I came across a very interesting method name for MouseEvents. The method is called

init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg_and_related_target_arg

This seems a bit long. Do we generate method names? Is there a way to override them? It just seems really off to have method name this long.

@db48x
Copy link

db48x commented Jul 19, 2020

Yes, see #2012 where it was changed from rebuilding these files on potentially every build to just building them once and checking in the result.

@Fallenstedt
Copy link
Author

Good to know. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants