DylanButler VIP Member VIP โ 15 โ Impact 38 Jan 21, 2008 784 views 1 reply #1 JavaScript [possible] clobbering problem? resolved sorry Last edited: Jan 22, 2008
DylanButler VIP Member VIP โ 15 โ Impact 38 Jan 21, 2008 #2 A coworker hooked me up with the fix for this by use of a closure: Code: var plotPoint = function(a) { return function(point) { if(point) { var marker = createMarker(a, point); gmap.addOverlay(marker); } }; }(listing);
A coworker hooked me up with the fix for this by use of a closure: Code: var plotPoint = function(a) { return function(point) { if(point) { var marker = createMarker(a, point); gmap.addOverlay(marker); } }; }(listing);