> > You don't need to touch every single line via indenting if you write the 
> > globals as
> > `const DemoEngine = function (...) {   ... };`
> 
> Then we would have `DemoEngine` poluting the global scope...

You can put it in `OSM` scope. `OSM.RoutingEngines.DemoEngine = ...`

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/5613/c2639799...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to