How to use the metal-dom.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 / app / App.js View on Github external
function exitDocumentLinkElement() {
	dom.exitDocument(document.getElementById('link'));
}
github liferay / senna.js / test / app / App.js View on Github external
this.app.navigate('/path1#surfaceId1').then(() => {
			const surfaceNode = document.querySelector('#surfaceId1');
			const {offsetLeft, offsetTop} = utils.getNodeOffset(surfaceNode);
			assert.strictEqual(window.pageYOffset, offsetTop);
			assert.strictEqual(window.pageXOffset, offsetLeft);
			hidePageScrollbar();
			dom.exitDocument(parentNode);
			done();
		});
	});
github liferay / senna.js / test / app / App.js View on Github external
this.app.navigate('/path2').then(() => {
				assert.strictEqual(2, surface1.addContent.callCount);
				assert.strictEqual('screenId2', surface1.addContent.args[1][0]);
				assert.strictEqual(undefined, surface1.addContent.args[1][1]);
				assert.strictEqual('default1', surface1.getChild('default').innerHTML);
				assert.strictEqual(2, surface2.addContent.callCount);
				assert.strictEqual('screenId2', surface2.addContent.args[1][0]);
				assert.strictEqual('content2', surface2.addContent.args[1][1]);
				dom.exitDocument(surface1.getElement());
				dom.exitDocument(surface2.getElement());
				done();
			});
		});
github liferay / sennajs.com / vendor / senna / src / screen / HtmlScreen.js View on Github external
			this.pendingStyles.forEach((style) => dom.exitDocument(style));
		}
github liferay / sennajs.com / vendor / senna / src / screen / HtmlScreen.js View on Github external
				temporariesInDoc.forEach((resource) => dom.exitDocument(resource));
				resolve();