W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2014

Re: Adding an interface to provide a list of listeners

From: Glenn Adams <glenn@skynav.com>
Date: Sun, 27 Jul 2014 14:35:15 -0400
Message-ID: <CACQ=j+dUnm8Yv25w1O9otJHhSaVrsDm_0uv2uGp9FAZW2iYybg@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Karl Groves <kgroves@paciellogroup.com>, Shane McCarron <shane@aptest.com>, Ms2ger <ms2ger@gmail.com>, "www-dom@w3.org" <www-dom@w3.org>, "W3C WAI Protocols & Formats" <public-pfwg@w3.org>
On Sun, Jul 27, 2014 at 2:10 PM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Sun, Jul 27, 2014 at 7:52 PM, Glenn Adams <glenn@skynav.com> wrote:
> > On Sun, Jul 27, 2014 at 1:42 PM, Anne van Kesteren <annevk@annevk.nl>
> wrote:
> >> I did not talk about triggering the observers. How does adding a
> >> listener clearly have side effects?
> >
> > (1) it mutates the list of listeners on some node
>
> Perhaps I should have said observable side effect from the perspective
> of those adding the listener.
>

As has been pointed out, it is apparently observable now, i.e., by
replacing the node with a partial clone (that doesn't clone its listener
list) and then dispatching an event to the node that would have but now
does not invoke a previously registered (but now missing) listener.


>
>
> > (2) it creates a future promise to invoke those listeners, which
> invocation
> > may (and usually does) produce side effects
>
> That's immaterial.
>
>
> --
> http://annevankesteren.nl/
>
Received on Sunday, 27 July 2014 18:36:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:23 UTC