{ "id": "117484", "key": "TIMOB-14631", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-01T23:02:27.000+0000", "created": "2013-07-23T12:08:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.2", "qe-testadded" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-20T00:49:58.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Not getting e.source on click event for UI controls.\r\nChecked with view,button and window.\r\n\r\n\r\nThis is not a regression.\r\n\r\nSteps to reproduce:\r\n1) Make a test Project and replace app.js with the code given below.\r\n2) Launch the app.\r\n3) After the app gets launched. Click the button.\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\n \r\nvar btn = Ti.UI.createButton({\r\n title: 'click me',\r\n height: 50,\r\n width: 150,\r\n color:'black'\r\n});\r\n \r\nbtn.addEventListener('click',function(e){\r\n alert(JSON.stringify(e.source));\r\n});\r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\nActual Result: Do not get anything it just returns empty JSON as\"{}\" \r\n\r\nExpected Result:It must return button properties as in ios and android.", "attachment": [], "flagged": false, "summary": "BlackBerry: Not able to get e.source on click event for UI controls such as window, view, button etc", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Verified with:\r\n\r\nStudio: 3.1.2.201307191853\r\nTitanium SDK:3.1.2.v20130718094558\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.3.2\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:Blackberry-Z10(v 10.0.10.261)\r\nblackberry SDK: 10.1.0.1020\r\n", "comment": { "comments": [ { "id": "264518", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "First pass:\r\n{code}e.source{code}\r\ndoes in fact return the JS obect called, i.e. Button, Window, etc. But the log outputs nothing.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T20:30:54.000+0000", "updated": "2013-08-01T20:30:54.000+0000" }, { "id": "264568", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Conclusion:\r\nWhen setting a TiProxy to TiProxy property, in this case the message on the alert, it would get ignored. if the property is not a proxy, then it would work. \r\n\r\nFixed by rewriting the way we set properties on init.\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/142", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T22:16:30.000+0000", "updated": "2013-08-01T22:16:30.000+0000" }, { "id": "279107", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Getting e.source on click event for UI controls such as window, view, button etc.\r\nChecked for view and button.\r\nHence Closing the issue.\r\n\r\nTested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201311120707\r\nSDK:3.2.0.v20131111174605\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0\r\ntitanium-code-processor: 1.0.3\r\nXcode:5.0.1\r\nDevice: Blackeberry Z 10\r\nOS: Mac OSX 10.9\r\n\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-12T11:10:36.000+0000", "updated": "2013-11-12T11:10:36.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }