Control should set this.div to null in destroy, thanks jorix for the updated patch, p=jorix,me r=me,fredj (closes #2850)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -44,8 +44,9 @@
|
||||
control = new OpenLayers.Control.PanZoomBar();
|
||||
map.addControl(control);
|
||||
control.removeButtons();
|
||||
var div = control.div;
|
||||
map.destroy();
|
||||
t.eq(control.div.childNodes.length, 0, "control's div cleared.");
|
||||
t.eq(div.childNodes.length, 0, "control's div cleared.");
|
||||
t.eq(control.zoombarDiv, null, "zoombar div nullified.")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user