kboyle/stash.js — pull request #1 by hrishikeshparanjape (2012-09-19 02:38:45+00:00)
Title: Added support for checking space left in localstorage

Original version only checks if any entry can be added to localstorage. It does not check if new object will fit in available localstorage or not. So, we add the entry to localstorage only if localstorage has space available to store it.