[OpenLayers-Trac] [OpenLayers] #1404: Specify event listeners at construction.

OpenLayers trac at openlayers.org
Wed Mar 5 11:40:54 EST 2008


#1404: Specify event listeners at construction.
-----------------------+----------------------------------------------------
  Reporter:  tschaub   |       Owner:  tschaub    
      Type:  feature   |      Status:  closed     
  Priority:  minor     |   Milestone:  2.6 Release
 Component:  Events    |     Version:  2.5        
Resolution:  fixed     |    Keywords:             
     State:  Complete  |  
-----------------------+----------------------------------------------------
Comment (by euzuro):

 some comments on this patch:

  * why are we keeping a reference to this 'eventListeners' property on the
 map, layer, and controls? I can't see anywhere else that it is used, so
 why keep a reference to it?

  * if we really want to keep a reference to it, why don't we then use it
 to unregister events on destroy? parallelism

  * if we do keep a reference to it, we should nullify/delete the
 'eventListeners' property in the destroy(), right?

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


More information about the Trac mailing list