Skip to content

joubertnel/sproutcore-localstorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SproutCore LocalStorage

SC.LocalStorage provides an easy eay to store key/value pairs, e.g. user preferences, on the local machine using HTML 5 localStorage. You use this by providing built-in defaults using the SC.LocalStorage.defaults() method. You can slo implement the LocalStorageDefaultsDelegate interface to be notified whenever a default is required.

You should also set the userDomain property on the defaults on page load. This enables storing/fetching keys from localStorage for the correct user.

You can also set an appDomain property if you want. This will be automatically prefixed to key names with no slashes in them.

SC.localStorage.getPath('global:contactInfo.userName');

To run the specs, start bpm preview and then navigate to http://localhost:4020/assets/spade-jasmine/index.html?package=sproutcore-localstorage

About

LocalStorage interface for SproutCore 2.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published