[OpenLayers-Trac] Re: [OpenLayers] #3003: IE throws an error when
closing the Browser Window
OpenLayers
trac-20090302 at openlayers.org
Wed Jan 5 03:53:47 EST 2011
#3003: IE throws an error when closing the Browser Window
----------------------------------+-----------------------------------------
Reporter: jepe | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Handler.Box | Version: 2.10
Keywords: IE error dragHandler | State: Review
----------------------------------+-----------------------------------------
Changes (by ahocevar):
* state: Awaiting User Feedback => Review
Comment:
This is a regression introduced by r10422. The Handler::destroy method
calls Handler.Box::deactivate, which accessed the dragHandler, which is
destroyed already. So the fix is to change the destroy method to call
destroy on the superclass first, and then remove the dragHandler. See
attached patch.
Tests for Handler.Box are still missing, but all other tests still pass.
Thanks for any review.
--
Ticket URL: <http://trac.openlayers.org/ticket/3003#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list