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>  
wrote:
> * 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
http://annevankesteren.nl/
Received on Wednesday, 16 November 2011 13:25:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:24 GMT