[jQuery] treeview: prendered + cookie persistence
I'm using treeview (version 1.4.1) with the 'prerendered' option in
combination with 'cookie' persistence. This seems to work fine until
the page with the treeview is build from scratch (as opposed to
refreshed as a result of pressing the browser back button for
instance). Because I build the prerendered treeview with all nodes
collapsed, all list items initially have the 'expandable' class set.
After the persistence logic has done it's thing, one would expect the
'expandable' classes of the expanded nodes to have changed to
'collapsable' but unfortunately that is not the case.
Is there a simple solution or workaround for this problem?