Core: remove widgets before resetToLoadState

This commit is contained in:
Mottie 2014-05-16 13:30:01 -05:00
parent 42f363c96f
commit c36bba643a

View File

@ -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);