clear
Deletes all records on a connection.
function()
Deletes all records on a connection.
Returns
{Promise}
:
Returns a promise that resolves when all data is cleared.
Use
Implement clear
to remove all data in a connection.
connect.behavior("my-behavior", function(baseConnection){
return {
clear: function(){
// delete tabs, or clear localStorage, etc
}
}
})