Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Dec 20, 2018
1 parent 9dd0272 commit 538cc1c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vaadin-login-overlay.html
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 538cc1c

Please sign in to comment.