Browse Source

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

UI: Fixed generate invalid name function in widgetTypeFunctionBody
pull/4851/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
6e162a590c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-ngx/src/app/modules/home/components/widget/widget-component.service.ts

2
ui-ngx/src/app/modules/home/components/widget/widget-component.service.ts

@ -384,7 +384,7 @@ export class WidgetComponentService {
}
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' +
' self.ctx = ctx;\n\n'; /*+

Loading…
Cancel
Save