The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 4 more by this user. Created: 11/28/12
Project: YUI 3
License: YUI BSD
YUI Version: 3.9.0pr3
Free for use.
Please do not use it yet. It works well, but there will be a revision by which it uses Promises.
Inspired by Ryan Grove's storage-lite and using most of his local-storage code. Extended with the next features:
How does the module set and get the right types:
In fact, all data is stringified, but flagged with the kind of type. When getting the item, the flag is used to render the original type.
Is it a 100% save storagemodule?
No unfortunately not. But almost in case the serverbackup storage is set up. To make use of the remotestorage, the client should accept cookies (to identify the unique userid). And the network-transfer should succeed. So, you always have to look if there is a callback error.
YUI().use('gallery-itsastorage', function(Y) {
});
All code on this site is licensed under the BSD License unless stated otherwise.