How to use the metal-dom.exitDocument function in metal-dom

To help you get started, we’ve selected a few metal-dom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liferay / senna.js / test / surface / Surface.js View on Github external
function exitDocumentSurfaceElement(surfaceId) {
	return dom.exitDocument(document.getElementById(surfaceId));
}
github deprecate / metal-position / test / Align.js View on Github external
afterEach(function() {
		dom.exitDocument(element);
		dom.exitDocument(mutable);
		dom.exitDocument(center);
		dom.exitDocument(offsetParent);
		window.scrollTo(0, 0);
	});
github liferay / senna.js / test / screen / HtmlScreen.js View on Github external
function exitDocumentElement(surfaceId) {
	return dom.exitDocument(document.getElementById(surfaceId));
}
github liferay / senna.js / test / app / AppDataAttributeHandler.js View on Github external
function exitDocumentSurfaceElement(surfaceId) {
	return dom.exitDocument(document.getElementById(surfaceId));
}
github liferay / senna.js / test / app / AppDataAttributeHandler.js View on Github external
function exitDocumentRouteElement(path) {
	return dom.exitDocument(document.querySelector('link[href="' + path + '"]'));
}
github deprecate / metal-position / test / Align.js View on Github external
afterEach(function() {
		dom.exitDocument(element);
		dom.exitDocument(mutable);
		dom.exitDocument(center);
		dom.exitDocument(offsetParent);
		window.scrollTo(0, 0);
	});
github liferay / senna.js / src / surface / Surface.js View on Github external
return this.transition(from, to).thenAlways(() => {
			if (from && from !== to) {
				exitDocument(from);
			}
		});
	}
github metal / metal.js / packages / metal-incremental-dom / src / render / patch.js View on Github external
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;
	}
}
github liferay / senna.js / src / surface / Surface.js View on Github external
remove(screenId) {
		var child = this.getChild(screenId);
		if (child) {
			exitDocument(child);
		}
	}