Re: [IndexedDB] Spec Question on IDBFactory open method

On Thu, Apr 21, 2011 at 11:16 AM, Israel Hilerio <israelh@microsoft.com> wrote:
> On Wed, Apr 20, 2011 at 3:16 PM, Jonas Sicking wrote:
>>On Wed, Apr 20, 2011 at 1:46 PM, Shawn Wilsher wrote:
>> > On Wed, Apr 20, 2011 at 1:33 PM, Israel Hilerio <israelh@microsoft.com> wrote:
>> > > The open method description in the IDBFactory talks about setting the
>> > >source of the IDBRequest to "no source".  What does "no source" means
>> > >("undefined", "null", other)?
>> > >
>> > > In addition, what should be the value of the transaction property in the
>> > > IDBRequest object returned from the open method?  It seems this should be
>> > > either "undefined" or null.
>> >
>> > I think undefined makes sense for both of these.
>> >
>> > Cheers,
>> >
>> > Shawn
>>
>> It's (almost) just an internal property, so it doesn't really matter.
>> There is no way to check.
>>
>> However we should make sure that IDBRequest.source returns null when
>> the source is set to "no source".
>>
>> / Jonas
>
> We see that it can go either way.  However, we believe it should be null.  Recently, we've been using undefined to signal properties that are not available to developers and null to signal unassigned values.  If we agree, I can open a bug on this. Let me know.

Yeah, I think 'null' is the right thing to return from .source

/ Jonas

Received on Thursday, 21 April 2011 23:17:04 UTC