]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.map.js.erb
Ensure object parameter is removed from edit link when closing sidebar
[rails.git] / app / assets / javascripts / leaflet.map.js.erb
index af7ce202da4ec23f2bee1f018d9c0efc93b39139..ed89e1fa572106acbd4c414349040cbb915dbf45 100644 (file)
@@ -100,10 +100,6 @@ L.OSM.Map = L.Map.extend({
       params.mlon = latLng.lng.toFixed(precision);
     }
 
-    if (this._object) {
-      params[this._object.type] = this._object.id;
-    }
-
     var url = 'http://' + OSM.SERVER_URL + '/',
       query = querystring.stringify(params),
       hash = OSM.formatHash(this);