Changeset 11218

Show
Ignore:
Timestamp:
10/30/07 03:51:05 (10 months ago)
Author:
alex
Message:

updating inline docs such that they get picked up by the parser. Refs #4820

Files:
1 modified

Legend:

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

    r11140 r11218  
    1414// ============================= 
    1515 
     16/*===== 
     17dojo.byId = function(id, doc){ 
     18        //      summary: 
     19        //              similar to other library's "$" function, takes a 
     20        //              string representing a DOM id or a DomNode and 
     21        //              returns the corresponding DomNode. If a Node is 
     22        //              passed, this function is a no-op. Returns a 
     23        //              single DOM node or null, working around several 
     24        //              browser-specific bugs to do so. 
     25        //      id: String|DomNode 
     26        //              DOM id or DOM Node 
     27        //      doc: DocumentElement? 
     28        //              optional, defaults to the current value of 
     29        //              dojo.doc.  Can be used to retreive 
     30        //              node references from other documents. 
     31        //      return: 
     32        //              DomNode 
     33} 
     34=====*/ 
     35 
    1636if(dojo.isIE || dojo.isOpera){ 
    17         dojo.byId = function(/*String*/id, /*DocumentElement*/doc){ 
    18                 // summary: 
    19                 //              similar to other library's "$" function, takes a 
    20                 //              string representing a DOM id or a DomNode and 
    21                 //              returns the corresponding DomNode. If a Node is 
    22                 //              passed, this function is a no-op. Returns a 
    23                 //              single DOM node or null, working around several 
    24                 //              browser-specific bugs to do so. 
    25                 // id: DOM id or DOM Node 
    26                 // doc: 
    27                 //              optional, defaults to the current value of 
    28                 //              dojo.doc.  Can be used to retreive 
    29                 //              node references from other documents. 
     37        dojo.byId = function(id, doc){ 
    3038                if(dojo.isString(id)){ 
    3139                        var _d = doc || dojo.doc; 
     
    5058        } 
    5159}else{ 
    52         dojo.byId = function(/*String*/id, /*DocumentElement*/doc){ 
    53                 // summary: 
    54                 //              similar to other library's "$" function, takes a 
    55                 //              string representing a DOM id or a DomNode and 
    56                 //              returns the corresponding DomNode. If a Node is 
    57                 //              passed, this function is a no-op. Returns a 
    58                 //              single DOM node or null, working around several 
    59                 //              browser-specific bugs to do so. 
    60                 // id: DOM id or DOM Node 
    61                 // doc: 
    62                 //              optional, defaults to the current value of 
    63                 //              dojo.doc.  Can be used to retreive 
    64                 //              node references from other documents. 
     60        dojo.byId = function(id, doc){ 
    6561                if(dojo.isString(id)){ 
    6662                        return (doc || dojo.doc).getElementById(id); 
     
    9995        }; 
    10096 
    101         dojo.isDescendant = function(/*Node|String*/node, /*Node|String*/ancestor){ 
     97        dojo.isDescendant = function(/*DomNode|String*/node, /*DomNode|String*/ancestor){ 
    10298                //      summary: 
    10399                //              Returns true if node is a descendant of ancestor 
     
    117113        }; 
    118114 
    119         dojo.setSelectable = function(/*Node|String*/node, /*Boolean*/selectable){ 
    120                 // summary: enable or disable selection on a node 
     115        dojo.setSelectable = function(/*DomNode|String*/node, /*Boolean*/selectable){ 
     116                //      summary: enable or disable selection on a node 
     117                //      node: 
     118                //              id or reference to node 
     119                //      selectable: 
    121120                node = dojo.byId(node); 
    122121                if(dojo.isMozilla){ 
     
    247246        dojo.getComputedStyle = function(node){ //DomNode 
    248247                //      summary: 
    249                 //              returns a "computed style" object which can be used to 
    250                 //              gather information about the current state of the 
    251                 //              rendered node.  
    252                 //              Note that this may behave differently on different  
    253                 //              browsers. Values may have different formats and value  
    254                 //              encodings across browsers.  
     248                //              returns a "computed style" object. 
     249                //      description: 
     250                //              get "computed style" object which can be used to gather 
     251                //              information about the current state of the rendered node.  
     252                // 
     253                //              Note that this may behave differently on different browsers. 
     254                //              Values may have different formats and value encodings across 
     255                //              browsers.  
     256                // 
    255257                //              Use the dojo.style() method for more consistent (pixelized) 
    256258                //              return values. 
     
    321323 
    322324        // FIXME: there opacity quirks on FF that we haven't ported over. Hrm. 
    323  
    324         dojo._getOpacity = (dojo.isIE ? function(/*DomNode*/node){ 
     325        /*===== 
     326        dojo._getOpacity = function(node){ 
    325327                        //      summary: 
    326328                        //              returns the current opacity of the passed node as a 
    327329                        //              floating-point value between 0 and 1. 
    328                         //      node: 
     330                        //      node: DomNode 
    329331                        //              a reference to a DOM node. Does NOT support taking an 
    330332                        //              ID string for speed reasons. 
     333                        //      return: Number between 0 and 1 
     334        } 
     335        =====*/ 
     336 
     337        dojo._getOpacity = (dojo.isIE ? function(node){ 
    331338                        try{ 
    332339                                return (node.filters.alpha.opacity / 100); // Number 
     
    339346        ); 
    340347 
    341         dojo._setOpacity = (dojo.isIE ? function(/*DomNode*/node, /*Number*/opacity){ 
     348        /*===== 
     349        dojo._setOpacity = function(node, opacity){ 
    342350                        //      summary: 
    343351                        //              set the opacity of the passed node portably. Returns the 
     
    348356                        //      opacity: 
    349357                        //              Number between 0 and 1. 0 specifies transparent. 
     358                        //      return: Number between 0 and 1 
     359        } 
     360        =====*/ 
     361 
     362        dojo._setOpacity = (dojo.isIE ? function(/*DomNode*/node, /*Number*/opacity){ 
    350363                        if(opacity == 1){ 
    351364                                // on IE7 Alpha(Filter opacity=100) makes text look fuzzy so remove it altogether (bug #2661)