{ "id": "159133", "key": "AC-3430", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-04-05T18:56:33.000+0000", "created": "2016-03-30T09:56:54.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-05T18:56:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "Model-View Databinding changed from 5.2.0 to 5.2.1\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*Derived file:*\r\n\r\n+In 5.2.0+\r\n\r\n{code:java}\r\n$.__alloyId5.text = _.isFunction($.contact.transform) ? $.contact.transform()[\"name\"] : _.template(\"<%=contact.name%>\", {\r\n contact: $.contact.toJSON()\r\n});\r\n{code}\r\n\r\n+In 5.2.1+ ({color:red}{$.{color} got not translared to <%=)\r\n\r\n{code:java}\r\n $.__alloyId407.text = _.isFunction($.contact.transform) ? $.contact.transform()[\"name\"] : _.template(\"{$.contact.name}\", {\r\n contact: $.contact.toJSON()\r\n});\r\n{code}\r\n\r\nNow the underscore _.template function would never work so it ist required to implement a transform function in all collections \r\n\r\n{code:java}\r\ntransform: function(){\t\t\t\t\r\n return this.toJSON();\r\n}\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Model-View binding is broken in 5.2.1", "creator": { "name": "mBahl", "key": "mbahl", "displayName": "Michael Bahl", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mBahl", "key": "mbahl", "displayName": "Michael Bahl", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MAC OS X\r\n", "comment": { "comments": [ { "id": "381046", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI am not completely understanding your issue. Could you explain a little more what you are trying to do. Please share full reproducible code about the issue that you are having. Also, Please provide a complete list of steps to follow for me to reproduce the issue in my environment. \r\n\r\nRegards,\r\nSharif", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-30T14:48:14.000+0000", "updated": "2016-03-30T14:48:14.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }