{ "id": "149579", "key": "TIMOB-19198", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-07-09T17:22:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:50.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "{code:javascript|title=index.js}\r\nAlloy.createController('MyWin',{helloWorld:'Hi there!');\r\n{code}\r\n\r\n\r\n{code:xml|title=MyWin.xml}\r\n\r\n{code}\r\n\r\n{code:javascript|title=MyWin.js}\r\nTi.API.info($.win.helloWorld);\r\n{code}\r\n\r\n4.0.0.GA output:\r\nbq. Hi There!\r\n\r\n4.1.0.GA output:\r\nbq. $.args.helloWorld", "attachment": [], "flagged": false, "summary": "$.args Alloy XML shortcut broken in 4.1.0.GA", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "357380", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I don't think this is a Titanium problem.\r\n\r\nThe compiled Alloy code looks like:\r\n\r\n{code:javascript}\r\n $.__views.win = Ti.UI.createWindow({\r\n id: \"win\",\r\n helloWorld: \"$.args.helloWorld\"\r\n });\r\n{code}\r\n\r\nAs you can see {{helloWorld}} is a string and that's the case regardless what Titanium SDK you use.\r\n\r\nIt's also the same for both Alloy versions that shipped with the AppC:\r\n\r\n* AppC 4.0.0 & 4.0.1 / Alloy 1.6.0\r\n* AppC 4.0.2 & 4.1.0 / Alloy 1.6.2\r\n\r\nIt's even the same if I don't go through {{appc run}}, install {{alloy}} from master and do {{alloy compile --config platform=ios}}.\r\n\r\nSo I wonder how this ever worked for you? The only place where I see {{$.args}} working is in {{if}} attributes:\r\nhttp://docs.appcelerator.com/platform/latest/#!/guide/Alloy_XML_Markup-section-35621528_AlloyXMLMarkup-ConditionalCode", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-09T19:29:51.000+0000", "updated": "2015-07-09T19:29:51.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }