diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index f651cff0e8..78d769cdb2 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -525,7 +525,7 @@ Array.prototype.clear = function() { * zIndex is NOT set * * @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} px - x,y point if missing 0,0 is used * @param {OpenLayers.Size} sz - size else size of parent is used * @param {String} overflow - behavior of clipped/overflow content * @param {String} img - background image url @@ -534,12 +534,12 @@ Array.prototype.clear = function() { * @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, px, sz, overflow, img, position) { var x,y,w,h; - if (pt) { - x = pt.x; - y = pt.y; + if (px) { + x = px.x; + y = px.y; } else { x = y = 0; }