Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14528] Blackberry: Cannot set custom property on proxy if it exists on a different proxy

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-07-26T16:04:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelsn/a
ReporterPedro Enrique
AssigneePedro Enrique
Created2013-07-11T17:51:10.000+0000
Updated2017-03-13T18:36:30.000+0000

Description

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

Comments

  1. Pedro Enrique 2013-07-15

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/127
  2. Lee Morris 2017-03-13

    Closing ticket as fixed.

JSON Source