[TIMOB-3087] e.sorce.id undefined
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-07-26T15:37:12.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | dmutha |
| Assignee | Neeraj Gupta |
| Created | 2011-04-15T03:36:34.000+0000 |
| Updated | 2012-07-26T20:34:11.000+0000 |
Description
hi. when i try to pull the parameter from a tableview on a click
event, i get e.source.id as undefined.
pasted below is my sample code.
tableView.addEventListener('click', function(e)
{
Ti.API.info(e.source.ID);
}
i get a error stating source undefined.
Cannot reproduce in SDK 2.2.0.014b86f with iPhone SIm 5.1. Test code:
var tableview = Ti.UI.createTableView({ data:[{title:'foo'}] }); tableview.addEventListener('click', function(e) { Ti.API.info(e.source); }); var win = Ti.UI.createWindow(); win.add(tableview); win.open();