From 538cc1c7deb911df7de97be0b640c78c1fed3726 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 20 Dec 2018 23:45:19 +0200 Subject: [PATCH] Simplify expression --- src/vaadin-login-overlay.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vaadin-login-overlay.html b/src/vaadin-login-overlay.html index 0c8a8c6..d089d01 100644 --- a/src/vaadin-login-overlay.html +++ b/src/vaadin-login-overlay.html @@ -163,10 +163,8 @@ } _teleport(elements) { - const teleported = []; - Array.from(elements).forEach(e => { - this.$.wrapper.appendChild(e); - teleported.push(e); + const teleported = Array.from(elements).map(e => { + return this.$.wrapper.appendChild(e); }); // Function to undo the teleport return () => {