code: function detachElement(element, opts) {
        if (!opts.preserveElement) {
          if (toNode(element).parentNode === toNode(opts.parent)) {
            toNode(opts.parent).removeChild(toNode(element));
          }
        } else {
          toNode(element).style.display = 'none';
        }
      }
docs: Use browser to remove this element without triggering a $destroy event