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

Add typedef, use underscore for private methods #14925

Merged
merged 2 commits into from Jul 20, 2023

Conversation

mike-000
Copy link
Contributor

@mike-000 mike-000 commented Jul 20, 2023

It seems wrong that a property does not have a typedef and that private methods do not use underscore. I am not familiar with Angular but I suspected the former is causing the issue in https://stackoverflow.com/q/76728961/10118270 As in ol/interaction/MouseWheelZoom a timeout id is declared as {?}.

@github-actions
Copy link

📦 Preview the website for this branch here: https://deploy-preview-14925--ol-site.netlify.app/.

@mike-000 mike-000 marked this pull request as ready for review July 20, 2023 13:39
Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mike-000. I added a suggestion for a better type.

src/ol/interaction/DblClickDragZoom.js Outdated Show resolved Hide resolved
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
@mike-000
Copy link
Contributor Author

Thanks, @mike-000. I added a suggestion for a better type.

That could also be updated in ol/MapBrowserEventHandler.js and ol/interaction/MouseWheelZoom.js

Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mike-000

@ahocevar ahocevar merged commit 0d31540 into openlayers:main Jul 20, 2023
8 checks passed
@ahocevar
Copy link
Member

That could also be updated in ol/MapBrowserEventHandler.js and ol/interaction/MouseWheelZoom.js

True, that would be a a nice fix in a separate pull request.

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

Successfully merging this pull request may close these issues.

None yet

2 participants