Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Firefox error - arrays not initialized #7
I was trying to set up your plugin and it's working fine everywhere except firefox. It errors out on the first serializer's init. (dies badly)
Firebug returns the following error:
Looking at the source I noticed you were not initializing the encoders and decoders arrays which made him die.
Fix: I just had to initialize it in before starting up the serializers.
this.encoders = this.decoders = ;
referenced this issue
Oct 9, 2012
Is there a reason you're using jQuery.store rather than something better maintained like jStorage?
I have a sticky note on my monitor reminding me to mark this thing as deprecated. If there is a valid reason my implementation works better for you than jStorage does, I'll reconsider…
(and thanks for the PR, much appreciated!)
The reason why I picked up yours instead of $.jStorage was because of your description:
"The $.store plugin (basically) is a rewrite of the $.jStorage plugin. In contrast to $.jStorage it allows the implementor to add specialized serializers and storage drivers. It can also be initialized to store data in localStorage and window.name via the same API. Additionally $.store does not cache the contents read from localStorage (which was the main reason for the rewrite)."
Since I need to have my own "serializer" (aka lens) it seemed a perfect fit. I haven't tried jStorage though so I don't know if it eases that process nowadays. Maybe your description is just old.