aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/eventtarget/eventtarget/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/eventtarget/eventtarget/index.md')
-rw-r--r--files/fr/web/api/eventtarget/eventtarget/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/fr/web/api/eventtarget/eventtarget/index.md b/files/fr/web/api/eventtarget/eventtarget/index.md
index dee098e931..516ec923fa 100644
--- a/files/fr/web/api/eventtarget/eventtarget/index.md
+++ b/files/fr/web/api/eventtarget/eventtarget/index.md
@@ -30,7 +30,7 @@ Une instance d'objet {{domxref("EventTarget")}}.
```js
class MyEventTarget extends EventTarget {
constructor(mySecret) {
-  super();
+ super();
this._secret = mySecret;
}
@@ -52,7 +52,7 @@ let newValue = myEventTarget.secret; // == 7
| Spécification | Statut | Commentaire |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------- | ----------- |
-| {{SpecName('DOM WHATWG', '#dom-eventtarget-eventtarget', 'EventTarget() constructor')}} | {{Spec2('DOM WHATWG')}} |   |
+| {{SpecName('DOM WHATWG', '#dom-eventtarget-eventtarget', 'EventTarget() constructor')}} | {{Spec2('DOM WHATWG')}} | |
## Compatibilité des navigateurs