Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1241] Alloy: Widget is loaded - initialized twice

GitHub Issuen/a
TypeBug
PriorityMedium
StatusResolved
ResolutionFixed
Resolution Date2015-10-01T17:55:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsWidgets
LabelsTCSupportTriage, tableviewrow, tableviewsection, widget
ReporterMatej
AssigneeFeon Sua Xin Miao
Created2014-10-08T10:12:31.000+0000
Updated2015-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

Comments

  1. Matej 2014-11-25

    Shouldn't have this issue higher priority? I guess that it may have an affect on performance .
  2. Feon Sua Xin Miao 2015-09-02

    PR: https://github.com/appcelerator/alloy/pull/719

JSON Source