Skip to content

Commit

Permalink
Allow for a widget's id to be optional so that the ESRI
Browse files Browse the repository at this point in the history
Search widget can be used with CMV.
  • Loading branch information
tmcgee committed Dec 16, 2015
1 parent c3a8737 commit 1d8ab3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion viewer/js/viewer/_WidgetsMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ define([

createWidget: function (widgetConfig, options, WidgetClass) {
// set any additional options
options.id = widgetConfig.id + '_widget';
if (widgetConfig.id) {
options.id = widgetConfig.id + '_widget';
}
options.parentWidget = widgetConfig.parentWidget;

//replace config map, layerInfos arrays, etc
Expand Down

0 comments on commit 1d8ab3d

Please sign in to comment.