quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

Error when the storage-limit of the localStorage is reached #221

Open DHainzl opened 10 years ago

DHainzl commented 10 years ago

Currently, Sammy throws the error "NS_ERROR_DOM_QUOTA_REACHED" when I try to save data into the session if the storage limit of the localStorage is reached.

This can be reproduced either in Firefox by visiting about:config and setting the value of dom.storage.default_quota to 0 or by visiting a page with Mobile Safari in Private Mode (which doesn't allow data to be saved to the localStorage) and then visiting a page using sammy.Session.

I already implemented a fix, I am currently working on a pull request which should be committed soon.

-- David