var callWidget; if(typeof setWidgetData === 'function') { callWidget = setWidgetData; } else { callWidget = setWidgetData_ }