[TIMOB-19198] $.args Alloy XML shortcut broken in 4.1.0.GA
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 4.1.0 |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Shannon Hicks |
| Assignee | Unknown |
| Created | 2015-07-09T17:22:49.000+0000 |
| Updated | 2018-02-28T19:55:50.000+0000 |
Description
Alloy.createController('MyWin',{helloWorld:'Hi there!');
<Window id="win" helloWorld="$.args.helloWorld" />
Ti.API.info($.win.helloWorld);
4.0.0.GA output:
bq. Hi There!
4.1.0.GA output:
bq. $.args.helloWorld
I don't think this is a Titanium problem. The compiled Alloy code looks like:
As you can see$.__views.win = Ti.UI.createWindow({ id: "win", helloWorld: "$.args.helloWorld" });helloWorldis a string and that's the case regardless what Titanium SDK you use. It's also the same for both Alloy versions that shipped with the AppC: * AppC 4.0.0 & 4.0.1 / Alloy 1.6.0 * AppC 4.0.2 & 4.1.0 / Alloy 1.6.2 It's even the same if I don't go throughappc run, installalloyfrom master and doalloy compile --config platform=ios. So I wonder how this ever worked for you? The only place where I see$.argsworking is inifattributes: http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_XML_Markup-section-35621528_AlloyXMLMarkup-ConditionalCode