[OpenLayers-Trac] [OpenLayers] #801: tiny weirdness in Feature.js:createMarker()
OpenLayers
trac at openlayers.org
Thu Jul 5 05:46:45 EDT 2007
#801: tiny weirdness in Feature.js:createMarker()
------------------------+---------------------------------------------------
Reporter: openlayers | Owner:
Type: bug | Status: new
Priority: trivial | Milestone:
Component: Feature | Version: 2.4
Keywords: |
------------------------+---------------------------------------------------
Current code looks like this:
createMarker: function() {
var marker = null;
if (this.lonlat != null) {
this.marker = new OpenLayers.Marker(this.lonlat,
this.data.icon);
}
return this.marker;
},
The local variable marker isn't used and isn't useful.
Attached patch just gets rid of that variable.
--
Ticket URL: <http://trac.openlayers.org/ticket/801>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list