OpenLayers OpenLayers

Ticket #1009 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

control.destroy() should remove itself from the map

Reported by: fredj Assigned to:
Priority: minor Milestone: 2.6 Release
Component: Control Version: SVN
Keywords: Cc:
State:

Description

layer.destroy() call removeLayer() so control.destroy() should do the same by calling removeControl()

Attachments

Control.destroy.removeControl.00.patch (2.9 kB) - added by fredj on 09/21/07 09:22:08.
call removeControl() in control.destroy(), add tests in test_Control.html, test pass in FF and IE

Change History

09/21/07 09:22:08 changed by fredj

  • attachment Control.destroy.removeControl.00.patch added.

call removeControl() in control.destroy(), add tests in test_Control.html, test pass in FF and IE

09/21/07 09:22:29 changed by fredj

  • keywords set to review.

09/30/07 12:25:45 changed by crschmidt

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.

(In [4676]) From fredj: "layer.destroy() calls removeLayer() so control.destroy() should do the same by calling removeControl()". (Closes #1009)