Community
Participate
Working Groups
Open the attached egl file. The code for a new DojoContentPane is generated twice. var eze$Temp2 = null; { var eze$SettingTarget1 = new egl.dojo.widgets.DojoContentPane(); egl.atLine(this.eze$$fileName,20,600,53, this); eze$SettingTarget1 = new egl.dojo.widgets.DojoContentPane(); egl.setWidgetLocation(eze$SettingTarget1, 'eze$SettingTarget1', 600, 53, true); }
Created attachment 205576 [details] test case
This isn't specific to widgets. Somewhat recently, Java gen fixed this by adding logic to decide when it could emit a single line to cover the declaration and initialization for a given field. This is contained in DeclarationExpressionTemplate and FieldTemplate (and possibly other places), so this logic needs to be "ported" over to the JS gen templates. Check with Jeff if there are questions about this.
Fixed, borrowed JavaGen logic. Thanks.
Verified in build 201111210901