destroy icon on destroy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@520 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -33,11 +33,10 @@ OpenLayers.Marker.prototype = {
|
|||||||
destroy: function() {
|
destroy: function() {
|
||||||
this.map = null;
|
this.map = null;
|
||||||
|
|
||||||
// code to remove HTMLImage will go here
|
if (this.icon != null) {
|
||||||
// I realize now that it was not a good
|
this.icon.destroy();
|
||||||
// idea to give OpenLayers.Icon the
|
this.icon = null;
|
||||||
// 'imageDiv' property.. that should be
|
}
|
||||||
// here. This is on my hot-list to fix
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user