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

Ability to cleanup/dispose/remove instances of plugin #111

Open
philfreo opened this issue Apr 30, 2014 · 5 comments
Open

Ability to cleanup/dispose/remove instances of plugin #111

philfreo opened this issue Apr 30, 2014 · 5 comments

Comments

@philfreo
Copy link
Contributor

Especially important for single page (e.g. backbone.js) apps where the table itself is being destroyed

Should be able to call:

$("table").stupidtable('dispose') or similar

@joequery
Copy link
Owner

joequery commented May 1, 2014

Noted, I'll consider this. Thanks for the issue. I'm pretty busy right now, so it may take me a while for me to get around to this.

@anarqz
Copy link

anarqz commented Feb 14, 2017

Like, 2 years? :p

@dsturbid
Copy link

I did this manually. This code stops the namespaced click event and removes the instance.

$table.off('click.stupidtable');
$.removeData($table.get(0));

From here: http://ub4.underblob.com/remove-jquery-plugin-instance/

@AidosMarcos
Copy link

This feature would be a great addition. I have a table that i reconstruct several times depending on selected filters, and it seem sorting stops working after first reconstruction.

@joequery
Copy link
Owner

This feature would be a great addition. I have a table that i reconstruct several times depending on selected filters, and it seem sorting stops working after first reconstruction.

Hey there. I was wondering if the will_manually_build_table option plus stupidtable_build works for your use case?

https://github.com/joequery/Stupid-Table-Plugin#will_manually_build_table

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

No branches or pull requests

5 participants