[openstreetmap/openstreetmap-website] Simplify iD's initialisation (PR #5597)

Marwin Hochfelsner notifications at github.com
Mon Feb 3 14:12:24 UTC 2025


Over the years this script has grown an increasing amount of technical debt. I tried to remove some.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5597

-- Commit Summary --

  * Add early return
  * Condense key passthrough
  * Remove mapParams redefinition
  * Merge gpx parameter passthrough
  * Split map view parameter conditions
  * Use const for constants

-- File Changes --

    M app/assets/javascripts/edit/id.js.erb (66)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5597.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5597.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5597
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5597 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250203/989b048f/attachment.htm>


More information about the rails-dev mailing list