Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Code to use jQuery lightweight plugin boilerplate. #9

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bilalsoomro
Copy link

Reason for changes:

  1. It fixes multiple instantiations bug.
    The following can be called again to refresh plugin if new items added programmatically. Previously, the existing paper cards would open and close if the method below was called.
    $('.collapse-card').paperCollapse();

  2. Added destroy method.
    $('.collapse-card').paperCollapse('destroy');

TODO: change min version as well

Changes include:
1) Fixed multiple instantiations bug.
2) Added destroy method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant