src/http/get-index/ssr.js
/**
 * Append a child to an element.
 *
 * @param elem The element to append to.
 * @param child The element to be added as a child.
 */
Append a child to an element.
@param elem The element to append to.
@param child The element to be added as a child.
Append a child to an element . @param elem The element to append to . @param child The element to be added as a child .
function appendChild(elem, child) {
  removeElement(child);
  child.next = null;
  child.parent = elem;
  if (elem.children.push(child) > 1) {
    var sibling = elem.children[elem.children.length - 2];
    sibling.next = child;
    child.prev = sibling;
  } else
  {
    child.prev = null;
  }
}
function appendChild ( elem , child ) { removeElement ( child ) ; child . next = null ; child . parent = elem ; if ( elem . children . push ( child ) > 1 ) { var sibling = elem . children [ elem . children . length - 2 ] ; sibling . next = child ; child . prev = sibling ; } else { child . prev = null ; } }
Append a child to an element.
Append a child to an element .