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

@ -275,7 +275,7 @@ L.extend(L.Icon.Default.prototype, {
}
});
function getUserIcon(url) {
OSM.getUserIcon = function (url) {
return L.icon({
iconUrl: url || OSM.MARKER_RED,
iconSize: [25, 41],
@ -284,4 +284,4 @@ function getUserIcon(url) {
shadowUrl: OSM.MARKER_SHADOW,
shadowSize: [41, 41]
});
}
};