Upstatement / jquery-total-storage

A jQuery plugin to manage local storage and cookies simultaneously in a simple interface
http://upstatement.com/blog/2012/01/jquery-local-storage-done-right-and-easy/
151 stars 66 forks source link

Working with totalStorage and jQuery.noConflict(), fails to retrieve local storage values #15

Open JoshuaSoileau opened 10 years ago

JoshuaSoileau commented 10 years ago

I am working on a project that uses both jquery and prototype.js, so I have to use jQuery in noConflict mode.

If I do this:

$j = jQuery.noConflict(); $j.totalStorage('visited', 1);

It successfully saves that key and value in local storage. But when I try and access this value:

$j.totalStorage('visited');

It returns null. I can set values, but not retrieve them, which makes it kind of pointless. Am I doing something wrong?