{ "id": "62650", "key": "TIMOB-2018", "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": [ { "id": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:49.000+0000", "created": "2011-04-15T03:08:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:49.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

See #581

\n

Basically I should be able to add an event listener to a proxy\nand fire it. Ticket #581 is specifically about Window(Views) but this\nshould be a TiProxy capability, not just TiViewProxy.

{html}", "attachment": [], "flagged": false, "summary": "Android: Implement Synthetic Events on Proxies", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127272", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Should already be working.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:15.000+0000", "updated": "2011-04-15T03:08:15.000+0000" }, { "id": "127273", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Verified that the code from #581 works as\nexpected. I've included the code inline below to make testing\neasier.

\n
\n\nTitanium.UI.setBackgroundColor('#000');\n\nvar tabGroup = Titanium.UI.createTabGroup();\n\nvar win = Titanium.UI.createWindow({  \n    title:'Tab',\n    backgroundColor:'#fff'\n});\n\nvar tab = Titanium.UI.createTab({\n    icon:'KS_nav_ui.png',\n    title:'Tab',\n    window:win\n});\n\nvar alt = Titanium.UI.createAlertDialog({\n  title: 'clicked!',\n  message: ''\n});\n\n\nvar button = Titanium.UI.createButton({\n    title:'Fires synthetic event',\n    height:40,\n    width:200,\n    top:10\n});\n\nvar button2 = Titanium.UI.createButton({\n    title:'Simple Click event',\n    height:40,\n    width:200,\n    top:100\n});\n\nbutton.addEventListener(\"click\", function() {\n  win.fireEvent(\"foo\");\n});\n\nbutton2.addEventListener(\"click\", function() {\n  alt.show();\n});\n\nwin.add(button);\nwin.add(button2);\n\nwin.addEventListener(\"foo\", function() {\n  alt.show();\n});\n\ntabGroup.addTab(tab);\n\ntabGroup.open();\n
{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:16.000+0000", "updated": "2011-04-15T03:08:16.000+0000" }, { "id": "127274", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed g2 and 2.1 sim (1.5.0.7d08f15), added test to\nbugtests

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:16.000+0000", "updated": "2011-04-15T03:08:16.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }