[ALOY-1241] Alloy: Widget is loaded - initialized twice
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2015-10-01T17:55:57.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Widgets |
| Labels | TCSupportTriage, tableviewrow, tableviewsection, widget |
| Reporter | Matej |
| Assignee | Feon Sua Xin Miao |
| Created | 2014-10-08T10:12:31.000+0000 |
| Updated | 2015-10-01T17:56:55.000+0000 |
Description
Widget within TableViewSection is initialized twice.
index.xml
<Alloy>
<Window>
<TableView>
<TableViewSection>
<Widget src="abc"/>
</TableViewSection>
<Widget src="abc"/>
</TableView>
</Window>
</Alloy>
widget.xml
<Alloy>
<TableViewRow title="1"/>
</Alloy>
widget.js
console.log("WIDGET.JS");
Console output:
WIDGET.JS // < Widget in section
WIDGET.JS // < Widget in section
WIDGET.JS // < No section
Shouldn't have this issue higher priority? I guess that it may have an affect on performance .
PR: https://github.com/appcelerator/alloy/pull/719