0

My app lets users create and remove input fields, on the creation of each input field I run

var autocomplete = new google.maps.places.Autocomplete(input, options);

Then, when my users remove the input fields later, I remove the dom element class=".pac-container" created by google autocomplete

document.body.removeChild( thePacContainers[i] );

My question: is there an object created by new google.maps still floating in memory that I need to remove? I'm not worried about the event listeneres on the input field, as the input fields are removed from the dom and I think modern browsers manage removing their event handlers.

Harshil Kotecha
  • 2,846
  • 4
  • 27
  • 41
kidconcept
  • 509
  • 6
  • 13

0 Answers0