Part 1 of #6120.

Creates `element.js` and moves `OSM.Browse` and `OSM.OldBrowse` there.

Everything in `element.js` is wrapped in iife which is currently not required, 
but #6120 later adds functions there; this is to avoid reindenting the code 
later.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Move Browse and OldBrowse to their own file
  * Rename Browse javascript controllers to Element
  * Implement MappedElement as extension of Element

-- File Changes --

    M app/assets/javascripts/index.js (55)
    A app/assets/javascripts/index/element.js (46)

-- Patch Links --

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

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

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

Reply via email to