Permalink
Browse files

Fix a bug on highlightFeature method.

  • Loading branch information...
jorix committed Dec 24, 2012
1 parent d27acfb commit 4199ca98a0574c5e800767172fdbf072036bb8a2
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/FeaturePopups.js
View
@@ -1872,7 +1872,9 @@ OpenLayers.Control.FeaturePopups.Layer = OpenLayers.Class({
}
// If replacement is undefined, return the string 'undefined'.
if (replacement === undefined) {
- replacement = _extendedContext['undefined'];
+ if (_extendedContext) {
+ replacement = _extendedContext['undefined'];
+ }
replacement =
(replacement !== undefined ? replacement : 'undefined');
}
@@ -2091,7 +2093,7 @@ OpenLayers.Control.FeaturePopups.Layer = OpenLayers.Class({
},
lonLat,
this.renderTemplate(
- template, feature.cluster[0]), oContextFeature);
+ template, feature.cluster[0], oContextFeature));
} else {
var html = '',
popupObjHoverList = control.popupObjs.hoverList;

0 comments on commit 4199ca9

Please sign in to comment.