shybyte / unhosted-time-tracker

10 stars 5 forks source link

clear tasks on disconnect #3

Closed nilclass closed 11 years ago

nilclass commented 11 years ago

use something like this:

remoteStorage.onWidget('state', function(state) {
  if(state === 'disconnected') {
    // tidy up
  }
});
shybyte commented 11 years ago

@nilclass thanks for the hint