so im doing, some magic with polygons in google maps. the thing is that im watching events on every polygon path (to detect changes on the polygon nodes with the 'set_at' and 'insert_at' events) , I loop on a polygons array and create this event (among others)
coffeescript
google.maps.event.addListener(polygon.getPath(), 'insert_at', (index) ->
every polygon has an id. but from this scope i can not access the parent element, and i need to save changes from the changed polygon... is there any way of geting the id of the parent polygon from this event listener?