W3C home > Mailing lists > Public > public-web-intents@w3.org > January 2012

Re: Supporting extra parameters on the Intent object

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Mon, 30 Jan 2012 14:23:37 +0100
Message-ID: <4F2699D9.3030306@lamouri.fr>
To: public-web-intents@w3.org
On 01/30/2012 03:18 AM, James Hawkins wrote:
> [Constructor(in string action, in string type, in any data)]
> interface Intent {
>     readonly attribute DOMString action;
>     readonly attribute DOMString type;
>     readonly attribute any data;
>     readonly attribute Dictionary extras;  <--- Added
>     void postResult (any data, optional Dictionary extras);      <---
> |extras| added
>     void postFailure (any data);
> };

Given that |data| is already of type |any| why can't it just be of
specific type |Dictionary| when needed?

--
Mounir
Received on Monday, 30 January 2012 13:24:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 January 2012 13:24:09 GMT