{"json_modified": "2016-05-12T01:04:35.650425", "uuid": "72ecb928-f11d-4882-a48a-dbe73724f299", "title": "DataStore.onchange", "url": "/en-US/docs/Archive/Firefox_OS/API/DataStore/onchange", "tags": ["DataStore", "API", "onchange", "B2G", "Reference", "Property", "Firefox OS", "R\u00e9f\u00e9rence", "Database", "Data Store API", "Events", "events", "Data Store", "Storage", "Api", "storage"], "translations": [], "modified": "2016-05-12T01:04:34", "label": "DataStore.onchange", "localization_tags": [], "locale": "en-US", "id": 129679, "last_edit": "2016-05-12T01:04:13", "summary": "The onchange
event handler of the DataStore
interface fires when a change is made to the data store. Its main use is to synchronize different apps that are using the data store when a change is made. When fired, this event returns a DataStoreChangeEvent
, which can be used to handle the change that was just made. Alternatively, when the event fires you could create a DataStoreCursor
and iterate through all the records, if needed.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Example", "title": "Example"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Archive/Firefox_OS/API/DataStore/onchange", "review_tags": []}