mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Destroy method now clears cache & pager rows copy
This commit is contained in:
parent
8f88f72899
commit
284b73eaf1
@ -594,6 +594,7 @@
|
||||
p.$container.hide(); // hide pager
|
||||
table.config.appender = null; // remove pager appender function
|
||||
p.initialized = false;
|
||||
delete table.config.rowsCopy;
|
||||
$(table).unbind('destroy.pager sortEnd.pager filterEnd.pager enable.pager disable.pager');
|
||||
if (ts.storage) {
|
||||
ts.storage(table, p.storageKey, '');
|
||||
|
@ -1186,6 +1186,7 @@
|
||||
$t.toggleClass(ts.css.table + ' ' + c.tableClass + ' tablesorter-' + c.theme, removeClasses === false);
|
||||
// clear flag in case the plugin is initialized again
|
||||
table.hasInitialized = false;
|
||||
delete table.config.cache;
|
||||
if (typeof callback === 'function') {
|
||||
callback(table);
|
||||
}
|
||||
|
@ -785,6 +785,7 @@ tsp = ts.pager = {
|
||||
p.$container.hide(); // hide pager
|
||||
c.appender = null; // remove pager appender function
|
||||
p.initialized = false;
|
||||
delete table.config.rowsCopy;
|
||||
c.$table.unbind('destroy.pager sortEnd.pager filterEnd.pager enable.pager disable.pager');
|
||||
if (ts.storage) {
|
||||
ts.storage(table, c.widgetOptions.pager_storageKey, '');
|
||||
|
Loading…
Reference in New Issue
Block a user