From 5581d049b071e1df4206d2957cb87b7f0a02f1b1 Mon Sep 17 00:00:00 2001 From: 007lva <007.lva@gmail.com> Date: Sun, 9 Aug 2020 11:35:18 +0200 Subject: [PATCH] Fix code samples of CE whenDefined --- src/content/en/fundamentals/web-components/customelements.md | 2 +- src/content/es/fundamentals/web-components/customelements.md | 2 +- src/content/id/fundamentals/web-components/customelements.md | 2 +- src/content/ja/fundamentals/web-components/customelements.md | 2 +- src/content/ko/fundamentals/web-components/customelements.md | 2 +- src/content/pt-br/fundamentals/web-components/customelements.md | 2 +- src/content/ru/fundamentals/web-components/customelements.md | 2 +- src/content/zh-cn/fundamentals/web-components/customelements.md | 2 +- src/content/zh-tw/fundamentals/web-components/customelements.md | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/content/en/fundamentals/web-components/customelements.md b/src/content/en/fundamentals/web-components/customelements.md index 2b5b706b3c3..a45c19353bb 100644 --- a/src/content/en/fundamentals/web-components/customelements.md +++ b/src/content/en/fundamentals/web-components/customelements.md @@ -421,7 +421,7 @@ element becomes defined. let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/es/fundamentals/web-components/customelements.md b/src/content/es/fundamentals/web-components/customelements.md index ee2e234e67b..1863b3a1fc4 100644 --- a/src/content/es/fundamentals/web-components/customelements.md +++ b/src/content/es/fundamentals/web-components/customelements.md @@ -508,7 +508,7 @@ proporciona una promesa que se resuelve al definirse el elemento. let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/id/fundamentals/web-components/customelements.md b/src/content/id/fundamentals/web-components/customelements.md index 015b1a0649a..4d21673027d 100644 --- a/src/content/id/fundamentals/web-components/customelements.md +++ b/src/content/id/fundamentals/web-components/customelements.md @@ -508,7 +508,7 @@ Ini akan menjajakan sebuah Promise yang akan ditetapkan bila elemen menjadi defi let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/ja/fundamentals/web-components/customelements.md b/src/content/ja/fundamentals/web-components/customelements.md index cfd2a71808a..6f926b7cbbe 100644 --- a/src/content/ja/fundamentals/web-components/customelements.md +++ b/src/content/ja/fundamentals/web-components/customelements.md @@ -502,7 +502,7 @@ HTML 属性は、ユーザーが初期状態を宣言するための便利な方 let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/ko/fundamentals/web-components/customelements.md b/src/content/ko/fundamentals/web-components/customelements.md index e54702d4b67..3e40981a56b 100644 --- a/src/content/ko/fundamentals/web-components/customelements.md +++ b/src/content/ko/fundamentals/web-components/customelements.md @@ -508,7 +508,7 @@ HTML 속성은 사용자가 초기 상태를 선언할 수 있는 간편한 방 let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/pt-br/fundamentals/web-components/customelements.md b/src/content/pt-br/fundamentals/web-components/customelements.md index 6f2f6f5bada..7ab37138c01 100644 --- a/src/content/pt-br/fundamentals/web-components/customelements.md +++ b/src/content/pt-br/fundamentals/web-components/customelements.md @@ -509,7 +509,7 @@ Ele disponibiliza uma promessa que será resolvida quando o elemento se tornar d let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/ru/fundamentals/web-components/customelements.md b/src/content/ru/fundamentals/web-components/customelements.md index 6c0faad81bc..cdb3c4669c9 100644 --- a/src/content/ru/fundamentals/web-components/customelements.md +++ b/src/content/ru/fundamentals/web-components/customelements.md @@ -470,7 +470,7 @@ let undefinedButtons = buttons.querySelectorAll(':not(:defined)'); let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); -)); +}); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/zh-cn/fundamentals/web-components/customelements.md b/src/content/zh-cn/fundamentals/web-components/customelements.md index b1996161747..28f876b37c9 100644 --- a/src/content/zh-cn/fundamentals/web-components/customelements.md +++ b/src/content/zh-cn/fundamentals/web-components/customelements.md @@ -503,7 +503,7 @@ HTML 属性可方便地让用户声明初始状态: let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => { diff --git a/src/content/zh-tw/fundamentals/web-components/customelements.md b/src/content/zh-tw/fundamentals/web-components/customelements.md index 8b527381ddd..d49dc004ade 100644 --- a/src/content/zh-tw/fundamentals/web-components/customelements.md +++ b/src/content/zh-tw/fundamentals/web-components/customelements.md @@ -502,7 +502,7 @@ HTML 屬性可方便地讓用戶聲明初始狀態: let promises = [...undefinedButtons].map(socialButton => { return customElements.whenDefined(socialButton.localName); - )); + }); // Wait for all the social-buttons to be upgraded. Promise.all(promises).then(() => {