Re: Supporting extra parameters on the Intent object

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 UTC