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

Add Uppy#close for tearing down an Uppy instance. #182

Merged
merged 7 commits into from
May 12, 2017

Conversation

goto-bus-stop
Copy link
Contributor

@goto-bus-stop goto-bus-stop commented May 2, 2017

This patch adds a method uppy.close() that "uninstalls" all plugins and removes any handlers Uppy may have attached. This is useful if you've got an SPA and don't want to keep your Uppy instances around forever while switching between client-side views.

The Tus and Multipart plugins already had an uninstall method, so they aren't changed here.

@kvz
Copy link
Member

kvz commented May 2, 2017

This looks very good to me 👍

@arturi
Copy link
Contributor

arturi commented May 12, 2017

This is crazy awesome 🥇

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.

3 participants