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:
commit
6e162a590c
@ -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'; /*+
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user