function initCollapse(node) {
  node.addClass('fa');
  node.addClass('fa-chevron-down');
  node.attr('onclick', 'ord.reaction.collapseToggle(this)');
  if (node.hasClass('starts_collapsed')) {
    node.trigger('click');
  }
}
/**
 * Sets up and initializes a collapse button by adding attributes into a div in
 * reaction.html.
 * @param {!Node} node Target node for the new button.
 */
Sets up and initializes a collapse button by adding attributes into a div in
reaction.html.
@param {!Node} node Target node for the new button.
Sets up and initializes a collapse button by adding attributes into a div in reaction . html . @param { !Node } node Target node for the new button .
function initCollapse(node) {
  node.addClass('fa');
  node.addClass('fa-chevron-down');
  node.attr('onclick', 'ord.reaction.collapseToggle(this)');
  if (node.hasClass('starts_collapsed')) {
    node.trigger('click');
  }
}
function initCollapse ( node ) { node . addClass ( 'fa' ) ; node . addClass ( 'fa-chevron-down' ) ; node . attr ( 'onclick' , 'ord.reaction.collapseToggle(this)' ) ; if ( node . hasClass ( 'starts_collapsed' ) ) { node . trigger ( 'click' ) ; } }
Sets up and initializes a collapse button by adding attributes into a div in
 reaction.html.
Sets up and initializes a collapse button by adding attributes into a div in reaction . html .