Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The `relatedSimultaneous` may not exist.

  • Loading branch information...
commit 706f6d2e89b2dcd0d19d56b5408ec721fe243084 1 parent be855ce
@jorix authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/FeaturePopups.js
View
6 lib/FeaturePopups.js
@@ -1481,7 +1481,8 @@ OpenLayers.Control.FeaturePopups.Popup = OpenLayers.Class({
if (this.relatedSimultaneous) {
var relatedObj =
control.popupObjs[this.relatedSimultaneous.related];
- if (relatedObj.popup && relatedObj.popupType === 'OL') {
+ if (relatedObj &&
+ relatedObj.popup && relatedObj.popupType === 'OL') {
_relatedPopup = relatedObj.popup;
_relatedAxis = this.relatedSimultaneous.axis;
}
@@ -1504,7 +1505,8 @@ OpenLayers.Control.FeaturePopups.Popup = OpenLayers.Class({
}
if (_relatedPopup) {
var _prevCalcRelativePosition = popup.calculateRelativePosition,
- _relpopRelPosition = (_relatedPopup.relativePosition || 'tr');
+ _relpopRelPosition =
+ (_relatedPopup.relativePosition || 'tr');
var syncRelativePosition = function(px) {
if (!_relatedPopup.id) {
// if related is dretroyed
Please sign in to comment.
Something went wrong with that request. Please try again.