[ALOY-868] Can't use deep <Require>'s for proxy properties
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-06T22:55:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.3.0, 2013 Sprint 22 |
Components | XML |
Labels | qe-manualtest |
Reporter | Tony Lukasavage |
Assignee | Tony Lukasavage |
Created | 2013-11-01T01:52:33.000+0000 |
Updated | 2014-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>
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 ticketVerified 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.TiSDK 3.2.0.v20131127194046 Alloy 1.3.0-beta CLI 3.2.0-beta Closing.