dojo.html.toCoordinateObject = dojo.html.toCoordinateArray = function(/* array */coords, /* boolean? */includeScroll, /* string? */boxtype) {   if(coords instanceof Array || typeof coords == "array"){ dojo.deprecated("dojo.html.toCoordinateArray", "use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead", "0.5");  while ( coords.length < 4 ) { coords.push(0); } while ( coords.length > 4 ) { coords.pop(); } var ret = { left: coords[0], top: coords[1], width: coords[2], height: coords[3] }; }else if(!coords.nodeType && !(coords instanceof String || typeof coords == "string") && ('width' in coords || 'height' in coords || 'left' in coords || 'x' in coords || 'top' in coords || 'y' in coords)){  var ret = { left: coords.left||coords.x||0, top: coords.top||coords.y||0, width: coords.width||0, height: coords.height||0 }; }else{  var node = dojo.byId(coords); var pos = dojo.html.abs(node, includeScroll, boxtype); var marginbox = dojo.html.getMarginBox(node); var ret = { left: pos.left, top: pos.top, width: marginbox.width, height: marginbox.height }; } ret.x = ret.left; ret.y = ret.top; return ret; 
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_284,_285,_286){ if(_284 instanceof Array||typeof _284=="array"){ dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5"); while(_284.length<4){ _284.push(0); 
dojo.html.toCoordinateObject = dojo.html.toCoordinateArray = function(/* array */coords, /* boolean? */includeScroll, /* string? */boxtype) {  //  summary  //  Converts an array of coordinates into an object of named arguments.  if(coords instanceof Array || typeof coords == "array"){    dojo.deprecated("dojo.html.toCoordinateArray", "use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead", "0.5");    // coords is already an array (of format [x,y,w,h]), just return it    while ( coords.length < 4 ) { coords.push(0); }    while ( coords.length > 4 ) { coords.pop(); }    var ret = {      left: coords[0],      top: coords[1],      width: coords[2],      height: coords[3]    };  }else if(!coords.nodeType && !(coords instanceof String || typeof coords == "string") &&       ('width' in coords || 'height' in coords || 'left' in coords ||        'x' in coords || 'top' in coords || 'y' in coords)){    // coords is a coordinate object or at least part of one    var ret = {      left: coords.left||coords.x||0,      top: coords.top||coords.y||0,      width: coords.width||0,      height: coords.height||0    };  }else{    // coords is an dom object (or dom object id); return it's coordinates    var node = dojo.byId(coords);    var pos = dojo.html.abs(node, includeScroll, boxtype);    var marginbox = dojo.html.getMarginBox(node);    var ret = {      left: pos.left,      top: pos.top,      width: marginbox.width,      height: marginbox.height    };  }  ret.x = ret.left;  ret.y = ret.top;  return ret; //  object}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js