The error is happening in my javascript here: http://dev.iancmyers.com/google/
Here is the function that is having the issue:

Zappos.prototype.fetchData = function() {
    console.log('fetchData called');
    var that = this;
    $.get('zappos.php', function(data) {
        console.log('data fetched');
        if(data != that.data) {
            that.data = data;
            data = data.split(';');
            var itemLatLng = new GLatLng(data[1], data[0]);
            var itemImage = $('<img src="' + data[2] + '" alt="" />');
            that.createOverlay(itemImage, itemLatLng);
            that.marker[that.itor] = new GMarker(itemLatLng);
            that.map.addOverlay(that.marker[that.itor]);

            var m = setTimeout(function(that, marker, itor)
{ that.map.removeOverlay(marker[itor]); that.removeMyOverlay(itor); },
6000, that, that.marker, that.itor);
            var f = setTimeout(function(that){ that.fetchData(); },
2000, that);

            that.itor++;
        }
    });
}

Reply via email to