{ "id": "83337", "key": "TIMOB-6436", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "12088", "description": "", "name": "Sprint 2011-48", "archived": true, "released": true, "releaseDate": "2011-12-05" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-04T15:36:47.000+0000", "created": "2011-12-02T13:31:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "branch-v8", "module_window", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "16685", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88045", "key": "TIMOB-8048", "fields": { "summary": "Android: removeEventListener does not work for the CI Builds", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-17T12:12:40.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": "In window.js, the addEventListener and addWrappedListener method should use this.view rather than this.window as this.window in the case of LW windows will not represent the actual view we are interested in getting events from. The implementation works but only due to bubbling.", "attachment": [], "flagged": false, "summary": "Android: change window.js addEventListener and addWrappedListener to use this.view rather than window", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "174631", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Testing for this ticket should include re-verifying both timob-6096 and timob-6393 with the new change.", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-02T13:32:44.000+0000", "updated": "2011-12-02T13:32:44.000+0000" }, { "id": "174643", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Use the code below to test removeEventListener.\r\nLongpress anywhere in the window (except the button and the labels), the bottom text should show \"longpress triggered\".\r\nPress the button and longpress in the window, the label with \"longpress triggered\" doesn't show up.\r\n{code}\r\nvar win = Ti.UI.createWindow(); \r\n\r\nwin.backgroundColor = '#13386c';\r\nwin.name = \"window\";\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'Remove longpress listener from window',\r\n\theight:40,\r\n\twidth:400,\r\n\ttop:400\r\n});\r\n\r\nvar l = Ti.UI.createLabel({\r\n\tcolor:'white',\r\n\tfont:{fontSize:14,fontWeight:'bold',fontFamily:'Helvetica Neue'},\r\n\tbottom:5,\r\n\ttextAlign:'center',\r\n\ttext:'longpress anywhere',\r\n\theight:'auto',\r\n\twidth:'auto'\r\n});\r\n\r\nvar l2 = Ti.UI.createLabel({\r\n\tcolor:'white',\r\n\tfont:{fontSize:14,fontFamily:'Helvetica Neue'},\r\n\tbottom:25,\r\n\ttextAlign:'center',\r\n\ttext:'',\r\n\theight:'auto',\r\n\twidth:'auto'\r\n});\r\n\r\nwin.add(l);\r\nwin.add(l2);\r\nwin.add(button);\r\n\r\nfunction clear(o)\r\n{\r\n\tvar t = o.text;\r\n\tsetTimeout(function()\r\n\t{\r\n\t\tif (o.text == t)\r\n\t\t{\r\n\t\t\to.text = \"\";\r\n\t\t}\r\n\t},1000);\r\n}\r\n\r\nfunction listener() {\r\n\tl.text = \"longpress triggered\";\r\n\tclear(l);\r\n}\r\n\r\nwin.addEventListener('longpress', listener);\r\n\r\nbutton.addEventListener('click', function() {\r\n\twin.removeEventListener('longpress', listener);\r\n});\r\n\r\nwin.addEventListener('click',function(ev)\r\n{\r\n\tl2.text = \"window: You clicked on \" +ev.source.name;\r\n\tclear(l2);\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-02T15:26:29.000+0000", "updated": "2011-12-02T15:26:29.000+0000" }, { "id": "174918", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed. Verified on:\r\nSDK: 1.8.0.1.v20111205011857\r\nRuntimes: Android V8/Rhino\r\nStudio: 1.0.7.201112041107\r\nOS: OS X Lion\r\nDevices Tested: Nexus One 2.2.2, Droid3 2.3.4, Slate 3.1, Emulator 4.0", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-05T14:30:03.000+0000", "updated": "2011-12-05T14:30:03.000+0000" }, { "id": "178034", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T15:36:14.000+0000", "updated": "2012-01-04T15:36:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }