Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3087] e.sorce.id undefined

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-26T15:37:12.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterdmutha
AssigneeNeeraj Gupta
Created2011-04-15T03:36:34.000+0000
Updated2012-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.

Comments

  1. Stephen Tramer 2012-07-26

    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();
       

JSON Source