[OpenLayers-Trac] [OpenLayers] #595: overviewmap control memory
OpenLayers
trac at openlayers.org
Sun Apr 1 10:23:16 EDT 2007
#595: overviewmap control memory
----------------------------------+-----------------------------------------
Reporter: euzuro | Owner: tschaub
Type: bug | Status: new
Priority: minor | Milestone: 2.4 Release
Component: Control.OverviewMap | Version:
Resolution: | Keywords: review
----------------------------------+-----------------------------------------
Comment (by crschmidt):
When navigating away from the page, there is probably an error, because
the ovmap 'unload' binding destroys the map:
this.unloadDestroy = this.destroy.bindAsEventListener(this);
// always call map.destroy()
OpenLayers.Event.observe(window, 'unload', this.unloadDestroy);
Since this is the case, destroy() may get called twice -- once by the
overview map, once by the unload event.
--
Ticket URL: <http://trac.openlayers.org/ticket/595#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list