when cloning an icon, set the calculateOffset() function too, if it exists.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@877 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-04 15:30:11 +00:00
parent 4ba3a290b8
commit 718d84d6d2

View File

@@ -53,7 +53,10 @@ OpenLayers.Icon.prototype = {
* @type OpenLayers.Icon
*/
clone: function() {
return new OpenLayers.Icon(this.url, this.size, this.offset);
return new OpenLayers.Icon(this.url,
this.size,
this.offset,
this.calculateOffset);
},
/**