From adb7255910886314f98477527f56dbb2b700b8d5 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 13 Mar 2008 16:58:01 +0000 Subject: [PATCH] Util doc updates. git-svn-id: http://svn.openlayers.org/trunk/openlayers@6519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Util.js | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 31d2c42d77..1391dfbd16 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -286,11 +286,10 @@ OpenLayers.Util.createImage = function(id, px, sz, imgURL, position, border, /** * Function: setOpacity - * Deprecated. - * This function has been deprecated. Instead, please use - * OpenLayers.Util.modifyDOMElement() + * *Deprecated*. This function has been deprecated. Instead, please use + * * or - * OpenLayers.Util.modifyAlphaImageDiv() + * * * Set the opacity of a DOM Element * Note that for this function to work in IE, elements must "have layout" @@ -308,6 +307,8 @@ OpenLayers.Util.setOpacity = function(element, opacity) { /** * Function: onImageLoad + * Bound to image load events. For all images created with or + * , this function will be bound to the load event. */ OpenLayers.Util.onImageLoad = function() { // The complex check here is to solve issues described in #480. @@ -857,8 +858,8 @@ OpenLayers.Util.getParameters = function(url) { /** * Function: getArgs - * Deprecated - Will be removed in 3.0. - * Please use instead OpenLayers.Util.getParameters + * *Deprecated*. Will be removed in 3.0. Please use instead + * * * Parameters: * url - {String} Optional url used to extract the query string. @@ -885,13 +886,15 @@ OpenLayers.Util.lastSeqID = 0; /** * Function: createUniqueID + * Create a unique identifier for this session. Each time this function + * is called, a counter is incremented. The return will be the optional + * prefix (defaults to "id_") appended with the counter value. * * Parameters: - * prefix {String} String to prefix unique id. - * If null, default is "id_" + * prefix {String} Optionsal string to prefix unique id. Default is "id_". * * Returns: - * {String} A unique id string, built on the passed in prefix + * {String} A unique id string, built on the passed in prefix. */ OpenLayers.Util.createUniqueID = function(prefix) { if (prefix == null) { @@ -993,10 +996,8 @@ OpenLayers.Util.getScaleFromResolution = function (resolution, units) { /** * Function: safeStopPropagation - * Deprecated. - * - * This function has been deprecated. Please use directly - * OpenLayers.Event.stop() passing 'true' as the 2nd + * *Deprecated*. This function has been deprecated. Please use directly + * passing 'true' as the 2nd * argument (preventDefault) * * Safely stop the propagation of an event *without* preventing