Does anyone know why I cannot access the array element location in the array called array inside the last function of codeAddress()?
It is the only element I cannot access and the only one which is not created on the first function. It gives me undefined for all locations.
Your help will be very appreciated..!
The array is passed on each function.
http://jsfiddle.net/ang3lo0o/teQEK/4/ The code is in this link
Two simple explanations:
itemhas alocationproperty – you might check thatarraybefore the asynchronous callback was executed! Move that into the callback function.