neocotic/template — Issue #59: Tidy persisted settings
Author: neocotic
Created: 2012-01-27 10:25:09+00:00
State: open

Group settings in to objects so that `localStorage` is cleaner and easier to read.

Option tags don't necessarily have to change but deprecating some might be beneficial going forward.

Use the new `store.modify` method to easily change properties of objects in `localStorage` without multiple/distributed getters and setters.

**Example:**

``` coffeescript
store.modify 'toolbar', (toolbar) ->
toolbar.close = yes # Previously toolbarPopupClose
toolbar.key = 'PREDEFINED.00001' # Previously toolbarTemplateKey
toolbar.style = no # Previously toolbarTemplateDetails
toolbar.popup = yes # Previously toolbarPopup & !toolbarTemplate
```