RE: DOM3EV: [ViewModes] typeArg on initXXXEvent

Hi Bjoern, Olli,

Thanks for your comments.
It is clear and ViewModes specification will follow this design pattern.

Thanks,
Marcin

Marcin Hanclik
ACCESS Systems Germany GmbH
Tel: +49-208-8290-6452  |  Fax: +49-208-8290-6465
Mobile: +49-163-8290-646
E-Mail: marcin.hanclik@access-company.com

-----Original Message-----
From: Bjoern Hoehrmann [mailto:derhoermi@gmx.net]
Sent: Monday, August 24, 2009 7:39 PM
To: Marcin Hanclik
Cc: www-dom@w3.org; public-webapps@w3.org
Subject: Re: DOM3EV: [ViewModes] typeArg on initXXXEvent

* Marcin Hanclik wrote:
>In the ViewModes specification [1] we define a few new events.
>All the initXXXEvent methods have currently typeArg parameter.
>I think they are superfluous, [...]

There is a n:n relationship between event types and event interfaces,
just because it may be 1:1 in special cases currently does not imply
that will remain to be the case in the future; further, omitting the
parameter in those cases would make the pattern more complicated, you
have to remember more rules, or rather, look the definition up each
time you attempt to use one of the init* methods, given how rarely
they are used and how many there are.
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/

________________________________________

Access Systems Germany GmbH
Essener Strasse 5  |  D-46047 Oberhausen
HRB 13548 Amtsgericht Duisburg
Geschaeftsfuehrer: Michel Piquemal, Tomonori Watanabe, Yusuke Kanda

www.access-company.com

CONFIDENTIALITY NOTICE
This e-mail and any attachments hereto may contain information that is privileged or confidential, and is intended for use only by the
individual or entity to which it is addressed. Any disclosure, copying or distribution of the information by anyone else is strictly prohibited.
If you have received this document in error, please notify us promptly by responding to this e-mail. Thank you.

Received on Tuesday, 25 August 2009 08:23:21 UTC