{ "id": "144962", "key": "ALOY-1251", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-02-19T10:40:19.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "proxy", "require", "views" ], "versions": [ { "id": "16595", "name": "Alloy 1.5.1", "archived": false, "released": true, "releaseDate": "2014-10-01" }, { "id": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2015-02-19T10:40:19.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": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "If you require a controller for a proxy property then run-time conditions are not properly applied in the compiled code. Creating the instance of the required controller has the condition, but assigning the proxy property hasn't, as the following example shows:\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*footer.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*compiled*\r\n{code:javascript}\r\n Alloy.Globals.footer && ($.__views.__alloyId5 = Alloy.createController(\"footer\", {\r\n id: \"__alloyId5\"\r\n }));\r\n $.__views.__alloyId2 = Ti.UI.createListView({\r\n footerView: $.__views.__alloyId5.getProxyPropertyEx(\"footerView\", {\r\n recurse: true\r\n }),\r\n id: \"__alloyId2\"\r\n });\r\n{code}", "attachment": [], "flagged": false, "summary": "Alloy: if-condition on required proxy property missing form assigning that property", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Alloy 1.5.1.GA\r\nAlloy 1.7.0-dev", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }