{ "id": "151209", "key": "ALOY-1303", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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-09-16T06:30:08.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16920", "name": "Alloy 1.7.1", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "issuelinks": [ { "id": "49008", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "144442", "key": "ALOY-1237", "fields": { "summary": "Alloy: Remove all event listeners added via view in $.destroy()", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2015-09-16T07:56:04.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "The [current implementation|https://github.com/appcelerator/alloy/pull/671] of ALOY-1237 uses the new {{$.addListener()}} method for any event listeners set on proxy objects via the XML.\r\n\r\nThis way the user can remove all or specific event listeners via {{$.removeListener()}}.\r\n\r\nIt would be better if the template for {{$.destroy()}} would include a call to {{$.removeListener()}} so that the user only has to call {{$.destroy()}} to both clean up listeners to global collections as well as local proxies.", "attachment": [], "flagged": false, "summary": "$.removeListener() should be called by $.destroy()", "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.7.8", "comment": { "comments": [ { "id": "364050", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "@fokke you meant: ... would include a call to $.removeListener() ... ?", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-09-16T07:49:49.000+0000", "updated": "2015-09-16T07:49:49.000+0000" }, { "id": "364053", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Indeed, thanks :D", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-09-16T07:56:04.000+0000", "updated": "2015-09-16T07:56:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }