JSHint is throwing following warning:
Functions declared within loops referencing an outer scoped variable may lead to confusing semantics. This is about creating a google maps project. I didn't find this exact problem in stackoverflow.
Any idea how to fix this it?
// The error refers on this line:
marker.addListener('click', function() {
// here is all the function:
marker.addListener('click', function() {
populateInfoWindow(this, largeInfowindow);
});
}
my gitHub Repo: https://github.com/Heleni/Google_Maps