From 98ae457aec038ed0f228385833d520349ba79027 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 7 Mar 2017 05:23:03 -0600 Subject: [PATCH] Core: Prevent overwriting default widgetOptions. Fixes #1356 --- js/jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index a885a402..e8fa8497 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -1917,7 +1917,7 @@ for ( indx = 0; indx < len; indx++ ) { widget = ts.getWidgetById( c.widgets[ indx ] ); if ( widget && widget.options ) { - c.widgetOptions = $.extend( true, {}, widget.options, c.widgetOptions ); + c.widgetOptions = $.extend( true, widget.options, c.widgetOptions ); // add widgetOptions to defaults for option validator $.extend( true, ts.defaults.widgetOptions, widget.options ); }