getify/h5ive-DEPRECATED

storage module needs "out of memory" handling

Open

#6 opened on 2013年6月4日

GitHub で見る
 (0 comments) (0 reactions) (1 assignee)JavaScript (60 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (325 stars)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド