JSDOC / coding standards createDiv function

git-svn-id: http://svn.openlayers.org/trunk/openlayers@143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-18 13:11:13 +00:00
parent 312e7cb7a8
commit 90918dad48
+7 -9
View File
@@ -521,20 +521,18 @@ Array.prototype.clear = function() {
/** Create a child element (a div currently) that /**
* is a proper child of the supplied parent, is invisible,
* positioned as requested within the parent, etc
*
* zIndex is NOT set * zIndex is NOT set
* *
* @param {str} id - HTML ID of new element, if empty something is made up * @param {String} id - HTML ID of new element, if empty something is made up
* @param {OpenLayers.Pixel} pt - x,y point if missing 0,0 is used * @param {OpenLayers.Pixel} pt - x,y point if missing 0,0 is used
* @param {OpenLayers.Size} sz - size else size of parent is used * @param {OpenLayers.Size} sz - size else size of parent is used
* @param {str} overflow - behavior of clipped/overflow content * @param {String} overflow - behavior of clipped/overflow content
* @param {str} img - background image url * @param {String} img - background image url
* @param {str} position - relative or absolute? * @param {String} position - relative or absolute?
* *
* @return {DOM} * @returns A DOM Div created with the specified attributes.
* @type DOMElement
*/ */
OpenLayers.Util.createDiv = function(id, pt, sz, overflow, img, position) { OpenLayers.Util.createDiv = function(id, pt, sz, overflow, img, position) {
var x,y,w,h; var x,y,w,h;