Merge pull request #4837 from vvlladd28/bugs/widget-component-service/widget-type-function

UI: Fixed generate invalid name function in widgetTypeFunctionBody
This commit is contained in:
Igor Kulikov 2021-07-02 12:46:01 +03:00 committed by GitHub
commit 6e162a590c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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