June 2010
Data Registry, Simple Data Caching for JavaScript
In most of the web apps I have written I have had to track / cache simple. It might a jQuery selector or a small group of objects in an array. In some form or another I end up doing something like this to get / set data.
appname.data.user[appname.data.state.activeUser].username;
Enter dataReg! Its a simple data caching object that allows you to simplify this process. You can turn that fragment of code into