coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Adding the ability to specify which localStorage variable to write to. #33

Closed stomlinson closed 13 years ago

stomlinson commented 13 years ago

Just as the WebSQL adapter has the ability to specify the name of the DB to write to, localStorage should have this capability as well. I have added a second formal parameter to the persistence.memory.configure function specifying the localStorage variable name. If none is given, it falls back to the default "persistenceData" name.

Thanks, fantastic library here!

zefhemel commented 13 years ago

Oh you people want to configure everything... ;-)

Thanks!