Code reposition + comment update.
Added missing jsduck for widgetDefinition.pathName.