Stupid-Table-Plugin
Stupid-Table-Plugin copied to clipboard
Ability to cleanup/dispose/remove instances of plugin
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
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.
Like, 2 years? :p
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/
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.
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