The Problem
In the following code we see that the first row has a custom property (a property that does not exist in TableViewRow). This property is "url". The property "url" does exist in, for example, WebView. When we click on this row, the property "url" is undefined.
Expected result
When clicking on the first row an alert dialog will appear with the word "meh"
Actual result
When clicking on the first row an alert dialog will appear with the word "undefined"
var win = Ti.UI.createWindow({
title: 'Window'
});
var table = Ti.UI.createTableView({
data: [
{title: 'Row 1', url: 'meh'},
{title: 'Row 2'},
{title: 'Row 3'},
{title: 'Row 4'},
{title: 'Row 5'},
{title: 'Row 6'},
{title: 'Row 7'},
{title: 'Row 8'},
{title: 'Row 9'},
{title: 'Row 10'},
]
});
table.addEventListener('click', function(e) {
alert(e.rowData.url);
})
win.add(table);
win.open();
This is not allowing some tests in KS to be run
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/127
Closing ticket as fixed.