Skip to content

Conversation

@haydngreatnews
Copy link
Collaborator

No description provided.

Previously the map initialisation was mostly in a function called "setAddress",
but also had some in the `connect` method. We've split the Controller
initialisation from the map initialisation, so it now hangs together a little
better.

Additionally, we now use controller properties in most places, rather than
passing a bunch of arguments that are already accessible by the callee
Base automatically changed from fix/changelog to main June 3, 2025 03:38
Copy link

@liamjohnston liamjohnston left a comment

Choose a reason for hiding this comment

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

Changes seem good 👍

There's a few things we'd do differently if we were building this now/ourselves. Up to you if you want to tackle any of them though:

  • keyCode is deprecated (see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode)
  • we prefer to use myEl.getAttribute('data-whatever') over myEl.dataset.whatever, since you can search the code and find the references more easily.
  • typescript would be nice, but obvs that's a bit more work.
  • ditto removing reliance on jquery (unless this also deals with jquery plugins?).

@haydngreatnews
Copy link
Collaborator Author

Will make an issue recording those for now, so I'm not holding up our projects any longer than necessary

@haydngreatnews haydngreatnews merged commit df9f559 into main Jun 17, 2025
10 checks passed
@haydngreatnews haydngreatnews mentioned this pull request Jun 17, 2025
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.

4 participants