{ "id": "80257", "key": "TIMOB-5553", "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": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-21T05:45:27.000+0000", "created": "2011-09-13T01:35:33.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "50218", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "154100", "key": "TIMOB-20191", "fields": { "summary": "The e.source of a table click event is supposed to return the table row but instead it returns the table view", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "updated": "2017-03-04T00:12:35.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "event.source of tableView always return tableViewRow object.\r\n\r\nCurrent behavior: After event was fired in tableView it returns event. event.source always has value equals to tableViewRow object which was clicked.\r\n\r\nExpected bahavior: event.source should return an object which was clicked in tableViewRow (label, button, etc). This behavior is present in the iOS.\r\n\r\nHow to reproduce: run KS_HTML5 >> Table View >> Table View(Layout 2) >> Click different parts of the row (date, photo, plus button, etc).\r\nExpected behavior: you should see \"source - [object Label]\" or \"source - [object Button]\" but not \"source - [object TableViewRow]\".\r\n\r\n{code:javascript}\r\ntableView.addEventListener('click', function(ev)\r\n{\r\n\tconsole.log('source - ' + ev.source);\r\n\t// use rowNum property on object to get row number\r\n\tvar rowNum = ev.index;\r\n\tvar updateRow = createUpdateRow('You clicked on the '+ev.source.clickName);\r\n\ttableView.updateRow(rowNum,updateRow,{animationStyle:Titanium.UI.iPhone.RowAnimationStyle.LEFT});\r\n});\r\n{code} ", "attachment": [], "flagged": false, "summary": "MobileWeb: event.source of tableView always return tableViewRow object", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "409217", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to MobileWeb no longer being supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-04T00:12:35.000+0000", "updated": "2017-03-04T00:12:35.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }