[OpenLayers-Trac] Re: [OpenLayers] #2749: OpenLayers.Layer.clone() does not clone properties of Object type correctly

OpenLayers trac-20090302 at openlayers.org
Fri Sep 9 14:30:27 EDT 2011


#2749: OpenLayers.Layer.clone() does not clone properties of Object type correctly
--------------------------+-------------------------------------------------
 Reporter:  aratcliffe    |       Owner:  crschmidt   
     Type:  bug           |      Status:  new         
 Priority:  major         |   Milestone:  2.12 Release
Component:  Layer.Vector  |     Version:  2.9         
 Keywords:                |       State:              
--------------------------+-------------------------------------------------

Comment(by zjames):

 Attached a patch that resolves the problem but may not be a good approach
 to the broader problem. Rather than testing for clone methods on contained
 objects, perhaps Util should have a deep copy function that could be used
 in place of applyDefaults when cloning.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2749#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list