Core: Prevent overwriting default widgetOptions. Fixes #1356

This commit is contained in:
Rob Garrison 2017-03-07 05:23:03 -06:00
parent 4913b2fc47
commit 98ae457aec

View File

@ -1917,7 +1917,7 @@
for ( indx = 0; indx < len; indx++ ) { for ( indx = 0; indx < len; indx++ ) {
widget = ts.getWidgetById( c.widgets[ indx ] ); widget = ts.getWidgetById( c.widgets[ indx ] );
if ( widget && widget.options ) { 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 // add widgetOptions to defaults for option validator
$.extend( true, ts.defaults.widgetOptions, widget.options ); $.extend( true, ts.defaults.widgetOptions, widget.options );
} }