From: Kai Krueger Date: Sat, 31 Mar 2012 05:15:24 +0000 (-0600) Subject: Rename showData to updateData in start.js.erb to resolve name clash X-Git-Tag: live~6227 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0f121e5390dfea022551bd1e57e1be35458665d9 Rename showData to updateData in start.js.erb to resolve name clash --- diff --git a/app/views/browse/start.js.erb b/app/views/browse/start.js.erb index d427ddbaf..951365268 100644 --- a/app/views/browse/start.js.erb +++ b/app/views/browse/start.js.erb @@ -32,7 +32,7 @@ function startBrowse() { browseBoxControl.handler.callbacks.done = endDrag; map.addControl(browseBoxControl); - map.events.register("moveend", map, showData); + map.events.register("moveend", map, updateData); map.events.triggerEvent("moveend"); $("#browse_select_box").click(startDrag); @@ -42,7 +42,7 @@ function startBrowse() { $("#browse_hide_areas_box").click(hideAreas); } -function showData() { +function updateData() { if (browseMode == "auto") { if (map.getZoom() >= 15) { useMap(false); @@ -77,7 +77,7 @@ function stopBrowse() { } map.dataLayer.setVisibility(false); - map.events.unregister("moveend", map, showData); + map.events.unregister("moveend", map, updateData); } }