You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s = new $.store();
s.set('test', {"a":1});
console.log('Get 1', s.get('test'));
s = new $.store();
console.log('Get 2', s.get('test'));
results in
Get 1 Object
a: 1
SyntaxError: Unexpected token o
This happens because .encoders and .decoders are part of the prototype, and thus globally modified every time new $.store is called.
This is an issue because I am using this in a single page application, and use it in just one model where it's needed (instead of storing a global reference and only initializing once).
The text was updated successfully, but these errors were encountered:
gregmac
added a commit
to gregmac/jQuery-store
that referenced
this issue
Jul 12, 2012
Running the following code:
results in
This happens because .encoders and .decoders are part of the prototype, and thus globally modified every time
new $.store
is called.This is an issue because I am using this in a single page application, and use it in just one model where it's needed (instead of storing a global reference and only initializing once).
The text was updated successfully, but these errors were encountered: