Skip to content

Instantly share code, notes, and snippets.

@jensarps
Created November 25, 2011 10:53
Show Gist options
  • Save jensarps/1393243 to your computer and use it in GitHub Desktop.
Save jensarps/1393243 to your computer and use it in GitHub Desktop.
IDBWrapper tutorial, step 5
var onsuccess = function(data){
console.log('Here is what we have in store ('+data.length+' items in total):');
data.forEach(function(item){
console.log(item);
});
}
var onerror = function(error){
console.log('Oh noes, sth went wrong!', error);
}
customers.getAll(onsuccess, onerror);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment