localStorage Polyfill V2.0

Today I commited a new version of the localStorage polyfill. It can be seen at GitHub.

The new version of the polyfill is a complete rewrite of the old one. The new version is written in a object oriented manner, which means that localStorage inherits from Storage that again inherits from one of the four different techniques that is implemented. These are:

  • globalStorage
  • userData Behavior
  • flashcookie
  • cookie
It was choosen to remove the google gears support, as I was not able to do any testing of the implementation.

The new version is integrated with Grunt and uses QUnit and blanket to test that the code works as expected in all browsers.

written 19-08-2014 22:14:47, viewed 2560 times.

Recent GitHub Commits