Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Fix code samples of CE whenDefined #8938

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down