mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-23 00:34:55 +00:00
Revert "fix IE6-8 throwing error on map.remove()" (#9782)
This commit is contained in:
@ -754,16 +754,8 @@ export const Map = Evented.extend({
|
||||
throw new Error('Map container is being reused by another instance');
|
||||
}
|
||||
|
||||
try {
|
||||
// throws error in IE6-8
|
||||
delete this._container._leaflet_id;
|
||||
delete this._containerId;
|
||||
} catch (e) {
|
||||
/*eslint-disable */
|
||||
this._container._leaflet_id = undefined;
|
||||
/* eslint-enable */
|
||||
this._containerId = undefined;
|
||||
}
|
||||
delete this._container._leaflet_id;
|
||||
delete this._containerId;
|
||||
|
||||
if (this._locationWatchId !== undefined) {
|
||||
this.stopLocate();
|
||||
|
Reference in New Issue
Block a user