sachinchoolur / lightgallery.js

Full featured JavaScript image & video gallery. No dependencies
https://sachinchoolur.github.io/lightgallery.js/
Other
5.3k stars 596 forks source link

Add support for onBeforeDestroy and onAfterDestroy events #115

Closed talawahtech closed 3 years ago

talawahtech commented 5 years ago

I needed this functionality, because I have a project where I need to force the reload of dynamically added gallery content, and I was seeing strange behavior if I attempted to destroy the old gallery and then create the new one too quickly.

I created a pull request with the changes.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. If the issue is still valid for version 2.x, please re-open. Apologize for not responding on time. Thank you for your contributions.