{ "id": "79569", "key": "TIMOB-5092", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2011-08-24T04:26:52.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "debugger", "tbs-1.9.0" ], "versions": [], "issuelinks": [ { "id": "12527", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "79575", "key": "TIMOB-5093", "fields": { "summary": "Debugger: add an inspector for event handlers", "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" } }, "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 } } } }, { "id": "12528", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "79576", "key": "TISTUD-601", "fields": { "summary": "Debugger: update UI for event inspector changes in SDK", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-18T22:53:02.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When debugging, it would be good to see all assigned eventHandlers connected to objects - this would allow an easy way to check that an event has been attached or removed. I think web inspectors/firebug has this ability. I came across a use case where my events weren't triggering, this facility would have helped in debugging the reason.\r\n\r\nThe following is just a simple testcase, with two windows and two eventListeners, that may be used to prove that the improvement works.\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor:'blue',\r\n exitOnClose:true,\r\n title:'win1: Main Window'\r\n});\r\nvar label1 = Ti.UI.createLabel({\r\n text:'Click this to open sub window',\r\n height:66,\r\n width:200\r\n});\r\nwin1.add(label1);\r\nwin1.open();\r\n\r\nlabel1.addEventListener('click', function(){\r\n Ti.API.info('*** label1 click event creating and opening win2 ***');\r\n var win2 = Ti.UI.createWindow({\r\n backgroundColor:'green',\r\n fullscreen:'false', // heavyweight\r\n title:'win2: Sub Window'\r\n });\r\n win2.open();\r\n\r\n win2.addEventListener('click', function(){\r\n Ti.API.info('*** win2 click event closing win2 ***');\r\n win2.close();\r\n });\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Debugger: add an inspector for event handlers", "creator": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }