From 2fdf43cc8c62c6a8b02182b93cfe88dec4e80052 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 30 Aug 2007 17:53:01 +0000 Subject: [PATCH] ND changes to createPopup function. No functional changes here. git-svn-id: http://svn.openlayers.org/trunk/openlayers@4130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Feature.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Feature.js b/lib/OpenLayers/Feature.js index 66f9a1090e..1164a5bfc8 100644 --- a/lib/OpenLayers/Feature.js +++ b/lib/OpenLayers/Feature.js @@ -153,9 +153,9 @@ OpenLayers.Feature = OpenLayers.Class({ /** * Method: createPopup - * Creates a popup object created from the 'lonlat', 'popupSize', - * and 'popupContentHTML' properties set in this.data. It uses - * this.marker.icon as default anchor. + * Creates a popup object created from the 'lonlat', 'popupSize', + * and 'popupContentHTML' properties set in this.data. It uses + * this.marker.icon as default anchor. * * If no 'lonlat' is set, returns null. * If no this.marker has been created, no anchor is sent. @@ -166,7 +166,10 @@ OpenLayers.Feature = OpenLayers.Class({ * closeBox - {Boolean} create popup with closebox or not * * Returns: - * {} + * {} Returns the created popup, which is also set + * as 'popup' property of this feature. Will be of whatever type + * specified by this feature's 'popupClass' property, but must be + * of type . * */ createPopup: function(closeBox) {