From 69d118500cccd88ca649d8bd12cf02019cd33a6d Mon Sep 17 00:00:00 2001 From: tristantheb Date: Sun, 11 Apr 2021 18:40:27 +0200 Subject: FIX: Update all FR content of the IntersectionObserver interface - Issue #409 (#410) * FIX: Update and fix all pages, remove old KS, update id-attr, replace content, translate missing strings * FIX: Fix some old text typo * Review - IntersectionObserver interface - rewordings and minor fixes * Review - IntersectionObserver.IntersectionObserver constructor - rewordings * Review - IntersectionObserver.observe - minor rewordings * Review - IntersectionObserver.root - rewordings * Review - IntersectionObserver.rootMargin - rewordings * Review - IntersectionObserver.thresholds - rewordings * Review - IntersectionObserver.unobserve - minor rewordings Co-authored-by: julieng --- .../api/intersectionobserver/unobserve/index.html | 74 +++++++++++----------- 1 file changed, 36 insertions(+), 38 deletions(-) (limited to 'files/fr/web/api/intersectionobserver/unobserve') diff --git a/files/fr/web/api/intersectionobserver/unobserve/index.html b/files/fr/web/api/intersectionobserver/unobserve/index.html index eb4b731432..188cd55d4e 100644 --- a/files/fr/web/api/intersectionobserver/unobserve/index.html +++ b/files/fr/web/api/intersectionobserver/unobserve/index.html @@ -4,71 +4,69 @@ slug: Web/API/IntersectionObserver/unobserve tags: - API - Intersection Observer - - IntersectionObserver API - - IntersectioonObserver - - Méthode + - Intersection Observer API + - IntersectionObserver + - Method - Reference + - unobserve translation_of: Web/API/IntersectionObserver/unobserve --- -
{{APIRef("Intersection Observer API")}}{{SeeCompatTable}}
+
{{APIRef("Intersection Observer API")}}
-

La méthode unobserve() de l'interface {{domxref("IntersectionObserver")}} indique à l'IntersectionObserver de cesser d'observer l'élément cible spécifié.

+

La méthode unobserve() de l'interface IntersectionObserver indique à l'objet IntersectionObserver courant de cesser d'observer l'élément cible spécifié.

-

Syntaxe

+

Syntaxe

-
IntersectionObserver.unobserve(cible);
+
IntersectionObserver.unobserve(target);
-

Paramètress

+

Paramètres

-
cible
-
L'{{domxref("Element")}} à cesser d'observer. Si l'élément spécifié n'est pas en cours d'observation, cette méthode ne fait rien et ne jette pas d'erreur.
+
target
+
L'élément à cesser d'observer. Si l'élément spécifié n'est pas en cours d'observation, cette méthode ne fait rien et ne lève pas d'exception.
-

Valeur de retour

+

Valeur de retour

undefined.

-
-
+

Exemple

-

Exemples

+

Ce fragment de code illustre la création d'un observateur, l'ajout d'un élément sous observation puis l'arrêt de cette d'observation.

-

Ce bout de code montre simplement la création d'un observateur, l'ajout d'un élément sous observation puis sa fin d'observation.

- -
let observer = new IntersectionObserver(fonctionRappel);
-observateur.observe(document.getElementById("élémentÀObserver"));
+
let observer = new IntersectionObserver(callback);
+observer.observe(document.getElementById("elementAObserver"));
 
 /* ... */
 
-observateur.unobserve(document.getElementById("élémentÀObserver"));
+observer.unobserve(document.getElementById("elementAObserver"));
-

Spécifications

+

Spécifications

- - - - - - - - - - - - + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('IntersectionObserver','#dom-intersectionobserver-unobserve','IntersectionObserver.unobserve()')}}{{Spec2('IntersectionObserver')}}Définition initiale.
SpécificationStatutCommentaire
{{SpecName('IntersectionObserver','#dom-intersectionobserver-unobserve','IntersectionObserver.unobserve()')}}{{Spec2('IntersectionObserver')}}Définition initiale.
-

Compatibilité des navigateurs

- - +

Compatibilité des navigateurs

{{Compat("api.IntersectionObserver.unobserve")}}

-

Voir aussi

+

Voir aussi

-- cgit v1.2.3-54-g00ecf