diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index e3b2927605..20e1b390af 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -230,10 +230,10 @@ OpenLayers.Popup = OpenLayers.Class({ */ updatePosition: function() { if ((this.lonlat) && (this.map)) { - var px = this.map.getLayerPxFromLonLat(this.lonlat); - if (px) { - this.moveTo(px); - } + var px = this.map.getLayerPxFromLonLat(this.lonlat); + if (px) { + this.moveTo(px); + } } },