{ "id": "111880", "key": "TIMOB-13257", "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": "15564", "description": "2013 Sprint 15 API", "name": "2013 Sprint 15 API", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "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-07-26T04:03:46.000+0000", "created": "2013-03-28T22:56:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "blackberry", "module_scrollView", "qe-testadded", "sdk-bb" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:45.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": null, "attachment": [], "flagged": false, "summary": "BlackBerry: ScrollView 'click' does not return e.source", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "262326", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening, As value of e.source in scrollView click event is different when compared to ios/android.\r\n\r\ncode used is:\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n title: 'ScrollView Demo'\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n contentWidth: 'auto',\r\n contentHeight: 'auto',\r\n showVerticalScrollIndicator: true,\r\n showHorizontalScrollIndicator: true,\r\n height: '80%',\r\n width: '80%',\r\n backgroundColor:'#336699'\r\n});\r\n\r\nscrollView.addEventListener('click',function(e){\r\n\tTi.API.info(e.source);\r\n\tTi.API.info(JSON.stringify(e.source));\r\n\tTi.API.info(JSON.stringify(e));\r\n});\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}\r\n\r\nWhen the above code was executed in ios/android and blackberry differences found are:\r\n\r\niOS/android: Ti.API.info(e.source) returns \r\n [object TiUIScrollView]/ti.modules.titanium.ui.ScrollViewProxy@40e2d890\r\nbut blackberry: Ti.API.info(e.source) returns\r\n [object Object]\r\n\r\nNow when I used Ti.API.info(JSON.stringify(e.source));\r\n\r\niOS/android: Ti.API.info(JSON.stringify(e.source)) returns \r\n all the properties of ScrollView.\r\n \r\n{\"minZoomScale\":1,\"backgroundColor\":\"#336699\",\"contentHeight\":\"auto\",\"maxZoomScale\":1,\"contentWidth\":\"auto\",\"height\":\"80%\",\"showHorizontalScrollIndicator\":true,\"zoomScale\":1,\"showVerticalScrollIndicator\":true,\"scrollingEnabled\":true,\"width\":\"80%\",\"canCancelEvents\":true,\"horizontalWrap\":true}\r\n\r\nbut blackberry: Ti.API.info(JSON.stringify(e.source)) returns only \r\n\r\n {\"showVerticalScrollIndicator\":true,\"showHorizontalScrollIndicator\":true}\r\n\r\n\r\nVerified with Environment:\r\n\r\nStudio: 3.1.2.201307161852\r\nTitanium SDK:3.1.2.v20130710144553\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),iphone simulator(v6.0),HTC Desire(4.0.3)\r\nblackberry SDK: 10.1.0.1020\r\nXcode: 4.5.1\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-18T12:47:41.000+0000", "updated": "2013-07-18T12:47:41.000+0000" }, { "id": "263351", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This has been fixed. If the JSON.stringify() returns different results than the other platforms, please open a ticket for that specify issue. ", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T04:03:46.000+0000", "updated": "2013-07-26T04:03:46.000+0000" }, { "id": "266064", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "e.source in blackberry as of now does not show the name of the object & you will see {object object} in the console as compared to other platforms like iphone. Opening a different ticket for it. It more of a feature to be implemented.\r\nThus closing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.1.2.201308082014\r\nTi SDK : 3.1.2.v20130809141556\r\nMac OSX : 10.8.4\r\nAlloy : 1.2.0-alpha6\r\nCLI - 3.1.2-alpha\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88\r\n\r\nQ10 Simulator : 10.1.0.1720\r\nQ10 Dev alpha C device running 10.1.0.138", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-12T21:45:39.000+0000", "updated": "2013-08-12T21:45:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }