Commit 321ccd5722f9327513453db7af383fbaec5b66c7
1 parent
a230e583
UI: Fixed generate invalid name widgetTypeFunctionBody
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -384,7 +384,7 @@ export class WidgetComponentService { | @@ -384,7 +384,7 @@ export class WidgetComponentService { | ||
384 | } | 384 | } |
385 | 385 | ||
386 | private createWidgetControllerDescriptor(widgetInfo: WidgetInfo, name: string): WidgetControllerDescriptor { | 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 | ' var self = this;\n' + | 388 | ' var self = this;\n' + |
389 | ' self.ctx = ctx;\n\n'; /*+ | 389 | ' self.ctx = ctx;\n\n'; /*+ |
390 | 390 |