Titanium JIRA Archive
Alloy (ALOY)

[ALOY-868] Can't use deep <Require>'s for proxy properties

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-08-06T22:55:20.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.3.0, 2013 Sprint 22
ComponentsXML
Labelsqe-manualtest
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2013-11-01T01:52:33.000+0000
Updated2014-08-06T22:55:20.000+0000

Description

In the below example, Alloy can't find the deep nested . This will end with and error indicating that __parentSymbol is undefined. We need ot pass the parent symbol through all requires.

index.xml

<Alloy>
	<TabGroup>
		<Tab>
			<Window id="index" backgroundColor="#fff">
				<Require src="next"/>
			</Window>
		</Tab>
	</TabGroup>
</Alloy>

index.js

$.index.open();

next.xml

<Alloy>
	<Require src="next2"/>
</Alloy>

next2.xml

<Alloy>
	<TitleControl><Label>hi there</Label></TitleControl>
</Alloy>

Comments

  1. Tony Lukasavage 2013-11-01

    PR: https://github.com/appcelerator/alloy/pull/266 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-868

    Functional test

    Run the test app on ios

    Ensure that the window has a titleControl with a plain label

    Prior to this fix, you would get the runtime error mentioned in the description of this ticket
  2. Federico Casali 2013-12-03

    Verified fixed and working as expected.

    next2.xml should not use a TitleControl object as is only iOS and MobileWeb.

    Just using a normal label shows the correct behavior also on Android.
       <Alloy>
       	<Label>hi there</Label>
       </Alloy>
       
    TiSDK 3.2.0.v20131127194046 Alloy 1.3.0-beta CLI 3.2.0-beta Closing.

JSON Source