From 59a3c2ab5476a2ea617f780764c4b3bf3c1d3d24 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 5 May 2021 00:31:00 +0000 Subject: [CRON] sync translated content --- files/fr/_redirects.txt | 3 +- files/fr/_wikihistory.json | 12 +-- .../global_objects/weakset/clear/index.html | 49 +++++++++++ .../global_objects/weakset/clear/index.html | 49 ----------- files/ja/_redirects.txt | 1 + files/ja/_wikihistory.json | 12 +-- .../global_objects/weakset/clear/index.html | 50 ++++++++++++ .../global_objects/weakset/clear/index.html | 49 ----------- files/zh-cn/_redirects.txt | 1 + files/zh-cn/_wikihistory.json | 14 ++-- .../global_objects/weakset/clear/index.html | 95 ++++++++++++++++++++++ .../global_objects/weakset/clear/index.html | 94 --------------------- 12 files changed, 217 insertions(+), 212 deletions(-) create mode 100644 files/fr/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html delete mode 100644 files/fr/web/javascript/reference/global_objects/weakset/clear/index.html create mode 100644 files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html delete mode 100644 files/ja/web/javascript/reference/global_objects/weakset/clear/index.html create mode 100644 files/zh-cn/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html delete mode 100644 files/zh-cn/web/javascript/reference/global_objects/weakset/clear/index.html (limited to 'files') diff --git a/files/fr/_redirects.txt b/files/fr/_redirects.txt index b244e30177..1939a44a5a 100644 --- a/files/fr/_redirects.txt +++ b/files/fr/_redirects.txt @@ -4745,6 +4745,7 @@ /fr/docs/Web/JavaScript/Reference/Fonctions_et_portee_des_fonctions/arguments/length /fr/docs/Web/JavaScript/Reference/Functions/arguments/length /fr/docs/Web/JavaScript/Reference/Fonctions_et_portee_des_fonctions/paramètres_du_reste /fr/docs/Web/JavaScript/Reference/Functions/rest_parameters /fr/docs/Web/JavaScript/Reference/Gabarit_chaînes_caractères /fr/docs/Web/JavaScript/Reference/Template_literals +/fr/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/clear /fr/docs/orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear /fr/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/prototype /fr/docs/conflicting/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global /fr/docs/Web/JavaScript/Reference/Grammaire_lexicale /fr/docs/Web/JavaScript/Reference/Lexical_grammar /fr/docs/Web/JavaScript/Reference/Index_des_méthodes /fr/docs/Web/JavaScript/Reference @@ -5448,7 +5449,7 @@ /fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakMap/set /fr/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/set /fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakSet /fr/docs/Web/JavaScript/Reference/Global_Objects/WeakSet /fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakSet/add /fr/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/add -/fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakSet/clear /fr/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/clear +/fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakSet/clear /fr/docs/orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear /fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakSet/delete /fr/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/delete /fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakSet/has /fr/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/has /fr/docs/Web/JavaScript/Reference/Objets_globaux/WeakSet/prototype /fr/docs/conflicting/Web/JavaScript/Reference/Global_Objects/WeakSet diff --git a/files/fr/_wikihistory.json b/files/fr/_wikihistory.json index ea36ad3564..4101aeee5c 100644 --- a/files/fr/_wikihistory.json +++ b/files/fr/_wikihistory.json @@ -40167,12 +40167,6 @@ "SphinxKnight" ] }, - "Web/JavaScript/Reference/Global_Objects/WeakSet/clear": { - "modified": "2020-10-15T21:30:59.712Z", - "contributors": [ - "SphinxKnight" - ] - }, "Web/JavaScript/Reference/Global_Objects/WeakSet/delete": { "modified": "2020-10-15T21:31:01.743Z", "contributors": [ @@ -45269,5 +45263,11 @@ "contributors": [ "loella16" ] + }, + "orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear": { + "modified": "2020-10-15T21:30:59.712Z", + "contributors": [ + "SphinxKnight" + ] } } diff --git a/files/fr/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html b/files/fr/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html new file mode 100644 index 0000000000..1c02480ff1 --- /dev/null +++ b/files/fr/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html @@ -0,0 +1,49 @@ +--- +title: WeakSet.prototype.clear() +slug: orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear +tags: + - JavaScript + - Méthode + - Obsolete + - Prototype + - Reference + - WeakSet +translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +original_slug: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +--- +
{{JSRef}}{{obsolete_header}}
+ +

La méthode clear() permettait de retirer tous les éléments d'un objet WeakSet mais celle-ci ne fait plus partie d'ECMAScript.

+ +

Syntaxe

+ +
ws.clear();
+ +

Exemples

+ +
var ws = new WeakSet();
+
+ws.add(window);
+ws.has(window);  // true
+
+ws.clear();
+
+ws.has(window); // false
+
+ +

Spécifications

+ +

Cette méthode ne fait partie d'aucune spécification ou brouillon. Cette méthode faisait partie du brouillon pour ECMAScript 6 jusqu'à la révision 28 (version en date du 14 octobre 2014) mais a été retirée par la suite. Elle ne fera pas partie du standard final.

+ +

Compatibilité des navigateurs

+ + + +

{{Compat("javascript.builtins.WeakSet.clear")}}

+ +

Voir aussi

+ + diff --git a/files/fr/web/javascript/reference/global_objects/weakset/clear/index.html b/files/fr/web/javascript/reference/global_objects/weakset/clear/index.html deleted file mode 100644 index a04bf60aeb..0000000000 --- a/files/fr/web/javascript/reference/global_objects/weakset/clear/index.html +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: WeakSet.prototype.clear() -slug: Web/JavaScript/Reference/Global_Objects/WeakSet/clear -tags: - - JavaScript - - Méthode - - Obsolete - - Prototype - - Reference - - WeakSet -translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet/clear -original_slug: Web/JavaScript/Reference/Objets_globaux/WeakSet/clear ---- -
{{JSRef}}{{obsolete_header}}
- -

La méthode clear() permettait de retirer tous les éléments d'un objet WeakSet mais celle-ci ne fait plus partie d'ECMAScript.

- -

Syntaxe

- -
ws.clear();
- -

Exemples

- -
var ws = new WeakSet();
-
-ws.add(window);
-ws.has(window);  // true
-
-ws.clear();
-
-ws.has(window); // false
-
- -

Spécifications

- -

Cette méthode ne fait partie d'aucune spécification ou brouillon. Cette méthode faisait partie du brouillon pour ECMAScript 6 jusqu'à la révision 28 (version en date du 14 octobre 2014) mais a été retirée par la suite. Elle ne fera pas partie du standard final.

- -

Compatibilité des navigateurs

- - - -

{{Compat("javascript.builtins.WeakSet.clear")}}

- -

Voir aussi

- - diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 23f71d4c7e..29e320a83f 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -4942,6 +4942,7 @@ /ja/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array_temp /ja/docs/Web/JavaScript/Reference/Global_objects/Uint32Array /ja/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array_temp /ja/docs/Web/JavaScript/Reference/Global_objects/Uint8Array /ja/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/prototype /ja/docs/Web/JavaScript/Reference/Global_Objects/WeakMap +/ja/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/clear /ja/docs/orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear /ja/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/prototype /ja/docs/Web/JavaScript/Reference/Global_Objects/WeakSet /ja/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/prototype /ja/docs/conflicting/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance /ja/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/prototype /ja/docs/conflicting/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 97ece65607..c8b72578c6 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -44978,12 +44978,6 @@ "shide55" ] }, - "Web/JavaScript/Reference/Global_Objects/WeakSet/clear": { - "modified": "2019-03-23T22:54:31.675Z", - "contributors": [ - "shide55" - ] - }, "Web/JavaScript/Reference/Global_Objects/WeakSet/delete": { "modified": "2020-11-14T09:39:33.107Z", "contributors": [ @@ -53242,6 +53236,12 @@ "mfuji09" ] }, + "orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear": { + "modified": "2019-03-23T22:54:31.675Z", + "contributors": [ + "shide55" + ] + }, "orphaned/Web/JavaScript/Reference/Operators/Special": { "modified": "2019-01-16T13:14:28.710Z", "contributors": [ diff --git a/files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html b/files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html new file mode 100644 index 0000000000..0ed95f130e --- /dev/null +++ b/files/ja/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html @@ -0,0 +1,50 @@ +--- +title: WeakSet.prototype.clear() +slug: orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear +tags: + - JavaScript + - Method + - Obsolute + - Prototype + - WeakSet +translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +original_slug: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +--- +
{{JSRef("Global_Objects", "WeakSet")}} {{obsolete_header}}
+ +

概要

+ +

WeakSetオブジェクトからすべての要素を削除します。

+ +

構文

+ +
ws.clear();
+ +

+ +

例: clear メソッドを使う

+ +
var ws = new WeakSet();
+
+ws.add(window);
+ws.has(window);  // true
+
+ws.clear();
+
+ws.has(window); // false
+
+ +

仕様

+ +

すべての現在の標準やドラフトでサポートされていません。このメソッドは、リビジョン 28 (October 14, 2014のバージョン)までECMAScript第6版ドラフト仕様でサポートされました。しかし、最新バージョンのドラフトで削除されました。最終仕様では、サポートされていません。

+ +

ブラウザ実装状況

+ +

{{Compat("javascript.builtins.WeakSet.clear")}}

+ +

関連情報

+ + diff --git a/files/ja/web/javascript/reference/global_objects/weakset/clear/index.html b/files/ja/web/javascript/reference/global_objects/weakset/clear/index.html deleted file mode 100644 index b8964bfe9e..0000000000 --- a/files/ja/web/javascript/reference/global_objects/weakset/clear/index.html +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: WeakSet.prototype.clear() -slug: Web/JavaScript/Reference/Global_Objects/WeakSet/clear -tags: - - JavaScript - - Method - - Obsolute - - Prototype - - WeakSet -translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet/clear ---- -
{{JSRef("Global_Objects", "WeakSet")}} {{obsolete_header}}
- -

概要

- -

WeakSetオブジェクトからすべての要素を削除します。

- -

構文

- -
ws.clear();
- -

- -

例: clear メソッドを使う

- -
var ws = new WeakSet();
-
-ws.add(window);
-ws.has(window);  // true
-
-ws.clear();
-
-ws.has(window); // false
-
- -

仕様

- -

すべての現在の標準やドラフトでサポートされていません。このメソッドは、リビジョン 28 (October 14, 2014のバージョン)までECMAScript第6版ドラフト仕様でサポートされました。しかし、最新バージョンのドラフトで削除されました。最終仕様では、サポートされていません。

- -

ブラウザ実装状況

- -

{{Compat("javascript.builtins.WeakSet.clear")}}

- -

関連情報

- - diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 2e332fbf50..bca23e125f 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -2553,6 +2553,7 @@ /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/prototype /zh-CN/docs/conflicting/Web/JavaScript/Reference/Global_Objects/TypedArray /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/URIError/prototype /zh-CN/docs/conflicting/Web/JavaScript/Reference/Global_Objects/URIError /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/prototype /zh-CN/docs/conflicting/Web/JavaScript/Reference/Global_Objects/WeakMap +/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/clear /zh-CN/docs/orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/prototype /zh-CN/docs/conflicting/Web/JavaScript/Reference/Global_Objects/WeakSet /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/生成器函数 /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/生成器函数/prototype /zh-CN/docs/conflicting/Web/JavaScript/Reference/Global_Objects/GeneratorFunction diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index b9582d5a37..f1c4de0e44 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -43709,13 +43709,6 @@ "Hushabyme" ] }, - "Web/JavaScript/Reference/Global_Objects/WeakSet/clear": { - "modified": "2019-03-23T22:18:46.466Z", - "contributors": [ - "teoli", - "Ende93" - ] - }, "Web/JavaScript/Reference/Global_Objects/WeakSet/delete": { "modified": "2020-03-17T12:14:42.437Z", "contributors": [ @@ -50701,6 +50694,13 @@ "lxuewu" ] }, + "orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear": { + "modified": "2019-03-23T22:18:46.466Z", + "contributors": [ + "teoli", + "Ende93" + ] + }, "orphaned/Web/JavaScript/javascript(起步)": { "modified": "2019-03-23T22:54:49.824Z", "contributors": [ diff --git a/files/zh-cn/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html b/files/zh-cn/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html new file mode 100644 index 0000000000..de4ef6da94 --- /dev/null +++ b/files/zh-cn/orphaned/web/javascript/reference/global_objects/weakset/clear/index.html @@ -0,0 +1,95 @@ +--- +title: WeakSet.prototype.clear() +slug: orphaned/Web/JavaScript/Reference/Global_Objects/WeakSet/clear +tags: + - JavaScript + - Method + - WeakSet + - 废弃 +translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +original_slug: Web/JavaScript/Reference/Global_Objects/WeakSet/clear +--- +
{{JSRef}} {{obsolete_header}}
+ +

clear() 方法用于删除 WeakSet 对象的所有元素,但是已经不是 ECMAScript 的一部分了。

+ +

语法

+ +
ws.clear();
+ +

示例

+ +

使用 clear方法

+ +
var ws = new WeakSet();
+
+ws.add(window);
+ws.has(window);  // true
+
+ws.clear();
+
+ws.has(window); // false
+
+ +

规范

+ +

没有规范或草案。该方法原本计划包括在 ECMAScript 6,但是在草案 revision 28 (October 14, 2014) 被抛弃了。浏览器原先的实现不久后也被移除了,它从来不是标准的一分子。

+ +

浏览器支持

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support36{{CompatNo}} [1]{{CompatNo}}23{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}} [1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

[1] Added to Firefox in version 34, but removed in version 46. See {{bug(1101817)}}.

+ +

相关

+ + diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/clear/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/clear/index.html deleted file mode 100644 index 7d1e17ee9d..0000000000 --- a/files/zh-cn/web/javascript/reference/global_objects/weakset/clear/index.html +++ /dev/null @@ -1,94 +0,0 @@ ---- -title: WeakSet.prototype.clear() -slug: Web/JavaScript/Reference/Global_Objects/WeakSet/clear -tags: - - JavaScript - - Method - - WeakSet - - 废弃 -translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet/clear ---- -
{{JSRef}} {{obsolete_header}}
- -

clear() 方法用于删除 WeakSet 对象的所有元素,但是已经不是 ECMAScript 的一部分了。

- -

语法

- -
ws.clear();
- -

示例

- -

使用 clear方法

- -
var ws = new WeakSet();
-
-ws.add(window);
-ws.has(window);  // true
-
-ws.clear();
-
-ws.has(window); // false
-
- -

规范

- -

没有规范或草案。该方法原本计划包括在 ECMAScript 6,但是在草案 revision 28 (October 14, 2014) 被抛弃了。浏览器原先的实现不久后也被移除了,它从来不是标准的一分子。

- -

浏览器支持

- -

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support36{{CompatNo}} [1]{{CompatNo}}23{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}} [1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
- -

[1] Added to Firefox in version 34, but removed in version 46. See {{bug(1101817)}}.

- -

相关

- - -- cgit v1.2.3-54-g00ecf