I finally have application and component states saving nicely.
For application state I am following these instructions:
http://docs.webix.com/desktop__uimanager_state.html
I need to provide a mechanism to return UI to default state.
Removing component state is easy. Application state has proven problematic.
Clearing out local storage is not an issue. However, the method above attaches an event to ‘unload’. So cleaning out local storage does not prevent its repopulation upon unload.
I started down the path of using ‘detachEvent’ but then saw this:
http://forum.webix.com/discussion/3062/event-api-issue-detached-event-is-reported-as-attached
So I figured I would stop and ask what is best practice as it appears you are not in favor of using ‘detachEvent’?