From: Tom Hughes Date: Thu, 14 Jun 2007 09:29:32 +0000 (+0000) Subject: Don't try and update links on nodes whose names match member functions X-Git-Tag: live~8380 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e0013130c2ada6b534307c6a9a3658544ca2347b?hp=7b9272ffa64c33b2b58f4019bdeffa855d280d10;ds=sidebyside Don't try and update links on nodes whose names match member functions of the JavaScript Array object... --- diff --git a/public/javascripts/site.js b/public/javascripts/site.js index b610f3728..781940fa6 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -1,5 +1,5 @@ function updatelinks(lon,lat,zoom) { - var links = new Array(); + var links = new Object(); links['viewanchor'] = '/index.html'; //links['editanchor'] = 'edit.html'; links['uploadanchor'] = '/traces';