function addClass(el, name) {
        if (!hasClass(el, name)) {
          el.className = el.className ? [el.className, name].join(' ') : name;
        }
    }
function addClass(el, name) {
        if (!hasClass(el, name)) {
          el.className = el.className ? [el.className, name].join(' ') : name;
        }
    }
function addClass ( el , name ) { if ( ! hasClass ( el , name ) ) { el . className = el . className ? [ el . className , name ] . join ( ' ' ) : name ; } }
addClass: add the css class for the element.
addClass : add the css class for the element .