Class puredom.LocalStorage.adapters.none
-
Abstract storage adapter interface.
- Defined in: LocalStorage.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
puredom.LocalStorage.adapters.none.defaultName
The default ID to use for database storage.
|
| <static> |
puredom.LocalStorage.adapters.none.rating
An adapter rating from 0-100.
|
Method Summary
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
puredom.LocalStorage.adapters.none.
load
(storage, callback)
Load all persisted data.
|
| <static> |
puredom.LocalStorage.adapters.none.
save
(storage, data, callback)
Save all data to the persistence layer.
|
| <static> |
puredom.LocalStorage.adapters.none.
test
(storage)
Tests if the adapter is supported in the current environment.
|
Class Detail
puredom.LocalStorage.adapters.none()
Field Detail
<static>
puredom.LocalStorage.adapters.none.defaultName
The default ID to use for database storage.
This is used as a fallback in cases puredom.LocalStorage#id does not exist.
This is used as a fallback in cases puredom.LocalStorage#id does not exist.
<static>
puredom.LocalStorage.adapters.none.rating
An adapter rating from 0-100. Ratings should be based on speed and storage capacity.
It is also possible to produce a dynamic rating value based on the current environment, though this is not recommended in most cases.
It is also possible to produce a dynamic rating value based on the current environment, though this is not recommended in most cases.
Method Detail
-
<static> puredom.LocalStorage.adapters.none.load(storage, callback)Load all persisted data.
- Parameters:
- {puredom.LocalStorage} storage
- The parent storage instance.
- {Function} callback
- A function to call once the data has been loaded. Expects a JSON object.
-
<static> puredom.LocalStorage.adapters.none.save(storage, data, callback)Save all data to the persistence layer.
- Parameters:
- {puredom.LocalStorage} storage
- The parent storage instance.
- {Object} data
- The JSON data to be saved.
- {Function} callback
- A function to call once the data has been saved. Expects a {Boolean} value indicating if the save was successful.
-
<static> {Boolean} puredom.LocalStorage.adapters.none.test(storage)Tests if the adapter is supported in the current environment.
- Parameters:
- {puredom.LocalStorage} storage
- The parent storage instance.
- Returns:
- {Boolean} isSupported