paper-collapse
paper-collapse copied to clipboard
Changed Code to use jQuery lightweight plugin boilerplate.
Reason for changes:
-
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();
-
Added destroy method. $('.collapse-card').paperCollapse('destroy');
TODO: change min version as well