How to access an object property from a callback function inside its method?
<p>I am defining this class:</p>

<pre><code>function GMap(map, marker, geocoder) {
    this.map = map;
    this.marker = marker;
    this.geocoder = geocoder;

    this.setMarker = function(address) {
        this.geocoder.geocode({'address' : address}, function(results, status) {
            map.setCenter(results[0].geometry.location);
            marker.setPosition(results[0].geometry.location);
        });
    }
}
</code></pre>

<p>How can you access the <code>map</code> and <code>marker</code> properties of GMap from the callback function?</p>

<p>Thanks a lot.</p>
