Changeset 10206

Show
Ignore:
Timestamp:
08/15/07 21:48:05 (12 months ago)
Author:
peller
Message:

Use new docparser comment feature for 'faux declaration'. Refs #3961

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/html.js

    r10186 r10206  
    243243        // 
    244244        // This is a faux declaration to take pity on the doc tool 
    245          
    246         dojo.getComputedStyle = function(/*DomNode*/node){ 
     245 
     246/*===== 
     247        dojo.getComputedStyle = function(DomNodenode){ //DomNode 
    247248                //      summary: 
    248249                //              returns a "computed style" object which can be used to 
     
    261262                return; // CSS2Properties 
    262263        } 
    263                  
     264=====*/ 
     265 
    264266        var gcs, dv = document.defaultView; 
    265267        if(dojo.isSafari){ 
     
    282284        } 
    283285        dojo.getComputedStyle = gcs; 
    284                  
     286 
    285287        if(!dojo.isIE){ 
    286288                dojo._toPixelValue = function(element, value){ 
    287289                        // style values can be floats, client code may want 
    288290                        // to round for integer pixels. 
    289                         return (parseFloat(value) || 0);  
     291                        return parseFloat(value) || 0;  
    290292                } 
    291293        }else{ 
     
    412414                        return op ? dojo._setOpacity(n, value) : n.style[style] = value; /*Number*/ 
    413415                } 
    414                 if (args==2 && op){ 
     416                if(args==2 && op){ 
    415417                        return dojo._getOpacity(n); 
    416418                } 
     
    594596                // fallback to offsetWidth/Height for special cases (see #3378) 
    595597                var s=computedStyle||gcs(node), pe=dojo._getPadExtents(node, s), be=dojo._getBorderExtents(node, s), w=node.clientWidth, h; 
    596                 if (!w) { 
     598                if(!w){ 
    597599                        w=node.offsetWidth, h=node.offsetHeight; 
    598                 } else { 
     600                }else{ 
    599601                        h=node.clientHeight, be.w = be.h = 0;  
    600602                } 
     
    697699                                pb=bb ? _nilExtents : dojo._getPadBorderExtents(node, s), 
    698700                                mb=dojo._getMarginExtents(node, s); 
    699                 if(widthPx>=0){ widthPx = Math.max(widthPx - pb.w - mb.w, 0);   } 
     701                if(widthPx>=0){ widthPx = Math.max(widthPx - pb.w - mb.w, 0); } 
    700702                if(heightPx>=0){ heightPx = Math.max(heightPx - pb.h - mb.h, 0); } 
    701703                dojo._setBox(node, leftPx, topPx, widthPx, heightPx); 
     
    889891                                        ret.y += isNaN(m) ? 0 : m; 
    890892                                        curnode = curnode.offsetParent; 
    891                                 }while((curnode != endNode)&&(curnode != null)); 
     893                                }while((curnode != endNode)&&curnode); 
    892894                        }else if(node["x"]&&node["y"]){ 
    893895                                ret.x += isNaN(node.x) ? 0 : node.x;