Commit 321ccd5722f9327513453db7af383fbaec5b66c7

Authored by Vladyslav Prykhodko
1 parent a230e583

UI: Fixed generate invalid name widgetTypeFunctionBody

... ... @@ -384,7 +384,7 @@ export class WidgetComponentService {
384 384 }
385 385
386 386 private createWidgetControllerDescriptor(widgetInfo: WidgetInfo, name: string): WidgetControllerDescriptor {
387   - let widgetTypeFunctionBody = `return function ${name} (ctx) {\n` +
  387 + let widgetTypeFunctionBody = `return function _${name} (ctx) {\n` +
388 388 ' var self = this;\n' +
389 389 ' self.ctx = ctx;\n\n'; /*+
390 390
... ...