From c36bba643ae568a115c2f0072152bbc636a4f652 Mon Sep 17 00:00:00 2001 From: Mottie Date: Fri, 16 May 2014 13:30:01 -0500 Subject: [PATCH] Core: remove widgets before resetToLoadState --- js/jquery.tablesorter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index de0636fb..468b43f8 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -950,6 +950,8 @@ ts.destroy(table, c, cb); }) .bind("resetToLoadState" + c.namespace, function(e){ + // remove all widgets + ts.refreshWidgets(table, true, true); // restore original settings; this clears out current settings, but does not clear // values saved to storage. c = $.extend(true, ts.defaults, c.originalSettings);