- From: Israel Hilerio <israelh@microsoft.com>
- Date: Mon, 2 May 2011 17:52:11 +0000
- To: "public-webapps@w3.org" <public-webapps@w3.org>
After calling the clear() method on IDBObjectStore, the result of the IDBRequest is set to undefined according to the "steps for clearing an object store". However, the result property in IDBRequest says that the result value is undefined when the request results in an error: "This is undefined when the request resulted in an error." In IE, we've been using undefined to signal properties that are not available to developers and null to signal unassigned values. It seems that null would be a better result value when the object store has been cleared. This would follow the same pattern we use in the deleteDatabase method where we return a null value for the result of the IDBRequest: "If the steps above are successful, the implementation must set the result of the request to null and fire a success event at the request." What do you think? Israel
Received on Monday, 2 May 2011 17:52:42 UTC