A popup can be destroyed before obtaining the images of contentDiv.

This commit is contained in:
Xavier Mamano
2012-01-30 19:42:23 +01:00
parent 9aa1c4450e
commit fa3d89f572

View File

@@ -685,7 +685,9 @@ OpenLayers.Popup = OpenLayers.Class({
// 'img' properties in the context.
//
var onImgLoad = function() {
if (this.popup.id === null) { // this.popup has been destroyed!
return;
}
this.popup.updateSize();
if ( this.popup.visible() && this.popup.panMapIfOutOfView ) {