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

Update jquery.sortable.js Destroy #122

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

Conversation

Helidium
Copy link

The destroy method doesn't clean itself properly. I dont know if this is the proper way of doing it, but in my code this works. Can you please make a full cleanup so no memory leaks are existing in case of spa ( Single page application )

The destroy method doesn't clean itself properly. I dont know if this is the proper way of doing it, but in my code this works. Can you please make a full cleanup so no memory leaks are existing in case of spa ( Single page application )
@daftspunk
Copy link

👍 x999

If this PR is no good, there needs to be some way to destroy a group completely because the first call group options persist and may contain callbacks which are destroyed. So the second call uses options with a bunch of dead references.

Could this work?

$(...).sortable('destroyGroup', 'group_name');

daftspunk added a commit to octobercms/october that referenced this pull request Jul 18, 2015
daftspunk added a commit to octobercms/october that referenced this pull request Jul 18, 2015
daftspunk added a commit to octoberrain/system that referenced this pull request Jul 19, 2015
daftspunk added a commit to octoberrain/system that referenced this pull request Jul 19, 2015
LukeTowers pushed a commit to octoberrain/system that referenced this pull request Apr 20, 2019
LukeTowers pushed a commit to octoberrain/system that referenced this pull request Apr 20, 2019
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.

2 participants