Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function exitDocumentSurfaceElement(surfaceId) {
return dom.exitDocument(document.getElementById(surfaceId));
}
afterEach(function() {
dom.exitDocument(element);
dom.exitDocument(mutable);
dom.exitDocument(center);
dom.exitDocument(offsetParent);
window.scrollTo(0, 0);
});
function exitDocumentElement(surfaceId) {
return dom.exitDocument(document.getElementById(surfaceId));
}
function exitDocumentSurfaceElement(surfaceId) {
return dom.exitDocument(document.getElementById(surfaceId));
}
function exitDocumentRouteElement(path) {
return dom.exitDocument(document.querySelector('link[href="' + path + '"]'));
}
afterEach(function() {
dom.exitDocument(element);
dom.exitDocument(mutable);
dom.exitDocument(center);
dom.exitDocument(offsetParent);
window.scrollTo(0, 0);
});
return this.transition(from, to).thenAlways(() => {
if (from && from !== to) {
exitDocument(from);
}
});
}
function tryPatchWithNoParent_(component) {
const tempParent = buildParentIfNecessary_(component.element);
if (tempParent) {
callPatch_(component, tempParent);
exitDocument(component.element);
if (component.element && component.inDocument) {
const attach = component.getAttachData();
component.attachElement(attach.parent, attach.sibling);
}
return true;
}
}
remove(screenId) {
var child = this.getChild(screenId);
if (child) {
exitDocument(child);
}
}