Move some javascript functions out of global scope

This commit is contained in:
Tom Hughes 2015-02-24 00:19:08 +00:00
parent 8568c93703
commit bd2e999756
10 changed files with 60 additions and 65 deletions

View file

@ -74,7 +74,7 @@ OSM.Search = function(map) {
if (!marker) {
var data = $(this).find("a.set_position").data();
marker = L.marker([data.lat, data.lon], {icon: getUserIcon()});
marker = L.marker([data.lat, data.lon], {icon: OSM.getUserIcon()});
$(this).data("marker", marker);
}