From 6e1697a6422229cf257b61f975a30278060ee62a Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Fri, 26 Jul 2024 14:09:04 +0100 Subject: [PATCH] "subscribe to an": use |observer| instead of [=this=] --- spec.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec.bs b/spec.bs index f20ae48..4f4013b 100644 --- a/spec.bs +++ b/spec.bs @@ -455,7 +455,7 @@ An internal observer is a [=struct=] with the following [=struct/item bindings on objects whose properties could be mutated by JavaScript. See [[#promise-returning-operators]] for usage of this. - 1. If [=this=]'s [=relevant global object=] is a {{Window}} object, and its [=associated + 1. If |observer|'s [=relevant global object=] is a {{Window}} object, and its [=associated Document=] is not [=Document/fully active=], then return. 1. Let |internal observer| be a new [=internal observer=]. @@ -534,13 +534,13 @@ An internal observer is a [=struct=] with the following [=struct/item 1. [=close a subscription|Close=] |subscriber|. - 1. If [=this=]'s [=Observable/subscribe callback=] is a {{SubscribeCallback}}, [=invoke=] it + 1. If |observer|'s [=Observable/subscribe callback=] is a {{SubscribeCallback}}, [=invoke=] it with |subscriber|. If an exception |E| was thrown, call |subscriber|'s {{Subscriber/error()}} method with |E|. - 1. Otherwise, run the steps given by [=this=]'s [=Observable/subscribe callback=], given + 1. Otherwise, run the steps given by |observer|'s [=Observable/subscribe callback=], given |subscriber|.