Changeset 8431

Show
Ignore:
Timestamp:
05/06/07 16:35:47 (19 months ago)
Author:
alex
Message:

style guide conformance for changeset 8402. Refs #2641

Files:
1 modified

Legend:

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

    r8426 r8431  
    512512 
    513513dojo.hasClass = function(/*HTMLElement*/node, /*String*/classStr){ 
    514         //      summary 
    515         //      Returns whether or not the specified classes are a portion of the 
    516         //      class list currently applied to the node.  
     514        //      summary: 
     515        //              Returns whether or not the specified classes are a portion of the 
     516        //              class list currently applied to the node.  
    517517        return (new RegExp('(^|\\s+)'+classStr+'(\\s+|$)')).test(node.className)        // Boolean 
    518518} 
    519519 
    520520dojo.addClass = function(/*HTMLElement*/node, /*String*/classStr){ 
    521         //      summary 
    522         //      Adds the specified classes to the end of the class list on the 
    523         //      passed node. 
    524         if (!dojo.hasClass(node, classStr)){ 
     521        //      summary: 
     522        //              Adds the specified classes to the end of the class list on the 
     523        //              passed node. 
     524        if(!dojo.hasClass(node, classStr)){ 
    525525                node.className = node.className + (node.className ? ' ' : '') + classStr; 
    526526        } 
     
    528528 
    529529dojo.removeClass = function(/*HTMLElement*/node, /*String*/classStr){ 
    530         //      summary 
    531         //      Removes classes from node. 
     530        //      summary: Removes classes from node. 
    532531        node.className = node.className.replace(new RegExp('(^|\\s+)'+classStr+'(\\s+|$)'), "$1$2"); 
    533532}