[OpenLayers-Trac] Re: [OpenLayers] #2864: cannot destroy a map with panels

OpenLayers trac-20090302 at openlayers.org
Thu Oct 7 11:22:54 EDT 2010

#2864: cannot destroy a map with panels
 Reporter:  erilem    |       Owner:              
     Type:  bug       |      Status:  new         
 Priority:  critical  |   Milestone:  2.11 Release
Component:  general   |     Version:  2.10        
 Keywords:            |       State:  Commit      

Comment(by jorix):

 Replying to [comment:5 erilem]:
 > Replying to [comment:4 jorix]:
 > jorix, please provide a patch, I'm failing to understand what you're
 suggesting. Thanks.
 I wrote fast and my English is not good.

 I added patch based on r10810.[[BR]]
 Becomes "{{{this.active = null;}}}" in the destruction of control.

 I have seen that there are some controls that are deactivated by the
 destruction and there is comment
 this.deactivate(); // TODO: this should be handled by the super
 (see Split.js and Snapping.js)[[BR]]
 I understand that in the future in the destruction of a control is also
 deactivated. For this reason and because it only runs once I think better
 this option.

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

More information about the Trac mailing list