cornae/Patterns — Issue #35: review collapsible pattern
Author: chaoflow
Created: 2012-03-07 14:37:28+00:00
State: open

I reworked [collapsible](https://github.com/cornae/Patterns/blob/master/src/patterns/collapsible.js):

- pattern as jquery plugin

```
$('.some').collapsible()
$('.come').open()
$('.come').close(0)
$('.come').toggle()
```

- pattern triggered via markup

- free the pattern code from generic stuff now handled in [patterns](https://github.com/cornae/Patterns/blob/master/src/patterns.js)

- use demo/collapsible.html as base for jasmine-jquery tests

Please review/comment the approach.