Re: Contacts API -- ContactFindOptions

On Aug 25, 2011, at 07:00 , Cameron McCormack wrote:
> On 25/08/11 4:47 PM, Andreas Gal wrote:
>> How can I pass an optional options object here of type ContactFindOptions if I don't have a constructor in the bindings to instantiate one?
> As timeless says, this could be changed to a dictionary so that it works.  That, or the [Callback] extended attribute needs to be on ContactFindOptions so that JS user objects can be considered to implement it -- then you can pass { filter: "whatever", multiple: true } to Contacts::find.

I think I like the dictionary solution better (but I won't fight for either option).

Andreas wrote:
> [NoInterfaceObject]
> interface 
> Contacts
> {
>    caller void find (DOMString[] fields, ContactFindCB successCB, optional ContactErrorCB errorCB, optional ContactFindOptions options);
> };

Andreas, it seems to me that you're reviewing the snapshot from I think that you will find that the development version at improves on it (diff:

Robin Berjon - - @robinberjon

Received on Thursday, 25 August 2011 10:31:31 UTC