[TIMOB-5553] MobileWeb: event.source of tableView always return tableViewRow object
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Low | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2011-09-21T05:45:27.000+0000 | 
| Affected Version/s | Release 1.7.0 | 
| Fix Version/s | Release 1.7.2, Backlog | 
| Components | MobileWeb | 
| Labels | n/a | 
| Reporter | Misha Vasko | 
| Assignee | Misha Vasko | 
| Created | 2011-09-13T01:35:33.000+0000 | 
| Updated | 2017-03-04T00:12:35.000+0000 | 
Description
	event.source of tableView always return tableViewRow object.
Current behavior: After event was fired in tableView it returns event. event.source always has value equals to tableViewRow object which was clicked.
Expected bahavior: event.source should return an object which was clicked in tableViewRow (label, button, etc). This behavior is present in the iOS.
How to reproduce: run KS_HTML5 >> Table View >> Table View(Layout 2) >> Click different parts of the row (date, photo, plus button, etc).
Expected behavior: you should see "source - [object Label]" or "source - [object Button]" but not "source - [object TableViewRow]".
tableView.addEventListener('click', function(ev)
{
	console.log('source - ' + ev.source);
	// use rowNum property on object to get row number
	var rowNum = ev.index;
	var updateRow = createUpdateRow('You clicked on the '+ev.source.clickName);
	tableView.updateRow(rowNum,updateRow,{animationStyle:Titanium.UI.iPhone.RowAnimationStyle.LEFT});
});
 
Closing ticket due to MobileWeb no longer being supported.