W3C home > Mailing lists > Public > public-device-apis@w3.org > November 2011

Re: addEventListener with side effects

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 16 Nov 2011 14:24:19 +0100
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>
Cc: "Dominique Hazael-Massieux" <dom@w3.org>, "Robin Berjon" <robin@robineko.com>, public-device-apis <public-device-apis@w3.org>
Message-ID: <op.v41jit1p64w2qv@annevk-macbookpro.local>
On Wed, 16 Nov 2011 14:21:11 +0100, Bjoern Hoehrmann <derhoermi@gmx.net>  
> * Anne van Kesteren wrote:
>> It is. But it is basically deployed all over already and in this case
>> indistinguishable. It's not a pattern that should be followed however.
> You could start with the test case I proposed in the discussion: use two
> listeners and see whether registering the second triggers the first one.
> If it does, you could argue about the meaning of "reason" "sufficiently"
> but you would be unlikely to convince a crowd, so, yes, distinguishable.

Yes we discussed that case and apparently the event fires often enough for  
it to not really be noticeable.

Anne van Kesteren
Received on Wednesday, 16 November 2011 13:25:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:32 UTC