From b9348dd5d5d8cc55e60db887427698f65a76bb2a Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 1 Apr 2008 11:00:45 +0000 Subject: [PATCH] avlee, elemoine, and ahocevar point out that we should change the initialization of the imageSrc property to be *before* we call the superclass. This pullup (Closes #1475), and is the last thing I'm going to touch before the 2.6 release. svn merge -r6749:6751 trunk branch. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.6@6752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Popup/FramedCloud.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/OpenLayers/Popup/FramedCloud.js b/lib/OpenLayers/Popup/FramedCloud.js index f99eaa250e..cf3bdb3640 100644 --- a/lib/OpenLayers/Popup/FramedCloud.js +++ b/lib/OpenLayers/Popup/FramedCloud.js @@ -28,12 +28,6 @@ OpenLayers.Popup.FramedCloud = */ panMapIfOutOfView: true, - /** - * Property: imageSrc - * {String} - */ - imageSrc: null, - /** * APIProperty: imageSize * {} @@ -214,9 +208,9 @@ OpenLayers.Popup.FramedCloud = initialize:function(id, lonlat, size, contentHTML, anchor, closeBox, closeBoxCallback) { + this.imageSrc = OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png'; OpenLayers.Popup.Framed.prototype.initialize.apply(this, arguments); this.contentDiv.className = "olFramedCloudPopupContent"; - this.imageSrc = OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png'; }, /**