function replaceChildWithTree(oldNode, newTree) {
  oldNode.parentNode.replaceChild(newTree.node, oldNode);
  insertTreeChildren(newTree);
}
Deletes all listeners for the DOM element with the supplied ID.

@param {object} inst The instance, which is the source of events.