alexander-ruehle / paper-collapse

Collapsible paper cards.
http://bbo-code.com/components/paper-collapse
163 stars 60 forks source link

When running .paperCollapse() by ourselves, the element is bound twice #2

Closed wesbos closed 9 years ago

wesbos commented 9 years ago

When plugin is loaded, the script runs $('.collapse-card').paperCollapse({});

However, i want to pass my own options like this:

      $('.collapse-card').paperCollapse({
        animationDuration : 2000
      });

This leads to paperCollapse being run twice and when i click to open, it closes right after.

Can we fix this? Perhaps take it out all together?

alexander-ruehle commented 9 years ago

You are right. This plugin is now opt-in and you have to initialize it yourself.

wesbos commented 9 years ago

Awesome - thank you :)