Changeset 2858
- Timestamp:
- 03/22/07 15:47:48 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (1 diff)
- trunk/openlayers/tests/test_Map.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Map.js
r2844 r2858 229 229 this.controls = null; 230 230 } 231 this.div.innerHTML = ""; 231 if (this.viewPortDiv) { 232 this.div.removeChild(this.viewPortDiv); 233 } 234 this.viewPortDiv = null; 232 235 }, 233 236 trunk/openlayers/tests/test_Map.html
r2855 r2858 368 368 t.eq( map.layers, null, "map.layers is null after destroy" ); 369 369 t.eq( map.controls, null, "map.controls is null after destroy" ); 370 t.eq( map. div.innerHTML, "", "map's div cleared out");370 t.eq( map.viewPortDiv, null, "map's viewportDiv nullified"); 371 371 } 372 372 // -->
