[OpenLayers-Trac] [OpenLayers] #1404: Specify event listeners at construction.
OpenLayers
trac at openlayers.org
Thu Mar 6 12:34:44 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):
Replying to [comment:11 tschaub]:
> Though events.destroy unregisters all event listeners (lest you thought
there was room for leakage here) - and keeping those references to
functions isn't like keeping references to dom elements.
right... but i would like us to explicitly unregister them as well. the
destroy on the events thing should be a last resort thing. i think it's
important to be explicit about registering and unregistering, newing and
deleting (nulling) or whatever... it makes it easier to make sure that we
are taking care of things without relying on "magic" (as some say)
functions.
plus... didn't you add some newfangled two letter function to do this
automatically(unregister all those listeners)??
--
Ticket URL: <http://trac.openlayers.org/ticket/1404#comment:14>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list