getify/h5ive-DEPRECATED

storage module needs "out of memory" handling

Aberta

#6 aberto em 4 de jun. de 2013

 (0 comentário) (0 reação) (1 responsável)JavaScript (60 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (325 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Only Opera (classic) handles running out of LocalStorage space in a user-graceful way (asking the user to increase). Therefore, the storage module needs to handle this more gracefully than a simple JS error.

We should try/catch when we save to localstorage, and fire a subscribable event to let the dev know in a graceful way that the failure to store happened.

Guia do colaborador