src/http/get-index/ssr.js
/**
 * Append an element after another.
 *
 * @param elem The element to append after.
 * @param next The element be added.
 */
Append an element after another.
@param elem The element to append after.
@param next The element be added.
Append an element after another . @param elem The element to append after . @param next The element be added .
function append$2(elem, next) {
  removeElement(next);
  var parent = elem.parent;
  var currNext = elem.next;
  next.next = currNext;
  next.prev = elem;
  elem.next = next;
  next.parent = parent;
  if (currNext) {
    currNext.prev = next;
    if (parent) {
      var childs = parent.children;
      childs.splice(childs.lastIndexOf(currNext), 0, next);
    }
  } else
  if (parent) {
    parent.children.push(next);
  }
}
function append$2 ( elem , next ) { removeElement ( next ) ; var parent = elem . parent ; var currNext = elem . next ; next . next = currNext ; next . prev = elem ; elem . next = next ; next . parent = parent ; if ( currNext ) { currNext . prev = next ; if ( parent ) { var childs = parent . children ; childs . splice ( childs . lastIndexOf ( currNext ) , 0 , next ) ; } } else if ( parent ) { parent . children . push ( next ) ; } }
Append an element after another.
Append an element after another .