W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 13004] New: Inheritance for dictionaries

From: <bugzilla@jessica.w3.org>
Date: Mon, 20 Jun 2011 23:14:18 +0000
To: public-script-coord@w3.org
Message-ID: <bug-13004-3890@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13004

           Summary: Inheritance for dictionaries
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: annevk@opera.com
         QAContact: member-webapi-cvs@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-script-coord@w3.org


We plan to change initEvent() to also accept a single argument. This would be a
dictionary. However, each event interface comes with its own properties so each
would require its own dictionary. To avoid having to overload initEvent() for
each new event interface and to avoid respecifying how type/cancelable/bubbles
and other properties work each time it would be nice if inheritance was
supported.

That way you could have a base InitEvent dictionary and CustomEvent could have
a InitCustomEvent inherited dictionary specifying just detail. Etc.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 20 June 2011 23:14:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC