danielstocks / jQuery-Collapse

A lightweight (~1kb) jQuery plugin that enables expanding and collapsing content
http://webcloud.se/jQuery-Collapse/
MIT License
679 stars 153 forks source link

class="open" should not override persist state #40

Closed davidism closed 11 years ago

davidism commented 11 years ago

Currently, the plugin doesn't distinguish between persist not having a key or having a false value.

What I think should happen is that the truth value of persist should be used if present, otherwise the open class should behave as normal.

anabelle commented 11 years ago

+1

danielstocks commented 11 years ago

So what you're saying is: If a user closes a section, that should persist (i.e stay closed on refresh), even if the 'class="open"' is set?