Skip to content

Instantly share code, notes, and snippets.

@jensarps
Created November 25, 2011 11:06
Show Gist options
  • Save jensarps/1393271 to your computer and use it in GitHub Desktop.
Save jensarps/1393271 to your computer and use it in GitHub Desktop.
IDBWrapper tutorial, step 6
var id = 1;
var onsuccess = function(result){
if(result !== false){
console.log('deletion successful!');
}
}
var onerror = function(error){
console.log('Oh noes, sth went wrong!', error);
}
customers.remove(id, onsuccess, onerror);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment