Open GoogleCodeExporter opened 9 years ago
Seems dom-construct contains a destroy method which handles removing the child
from the parent...I assume dojo.destroy does the same. This code works in IE8:
_unsetMap: function (map, layersDiv) {
var google = window.google;
dojo.forEach(this._connects, dojo.disconnect, dojo);
if (this._streetView) {
this._streetView.setVisible(false);
}
if (google && google.maps && google.maps.event) {
if (this._gmapTypeChangeHandle)
google.maps.event.removeListener(this._gmapTypeChangeHandle);
if (this._svVisibleHandle)
google.maps.event.removeListener(this._svVisibleHandle);
}
dojo.destroy(this._element);
dojo.destroy(this._controlDiv);
dojo.destroy(this._topDiv);
},
Original comment by coreya...@gmail.com
on 23 Aug 2012 at 4:29
Original issue reported on code.google.com by
coreya...@gmail.com
on 23 Aug 2012 at 12:21