Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-14528] Allow custom properties on proxies even if they exist on o... #127

Merged
merged 1 commit into from Jul 25, 2013

Conversation

pec1985
Copy link
Contributor

@pec1985 pec1985 commented Jul 11, 2013

...ther proxies

@mtnlife999
Copy link
Contributor

Could I get a simple Javascript test case

@pec1985
Copy link
Contributor Author

pec1985 commented Jul 25, 2013

Yes, simple:

var win = Ti.UI.createWindow();

var table = Ti.UI.createTableView({
    data: [
        {title: 'Row 1', url: 'some custom prop 1'},
        {title: 'Row 2', url: 'some custom prop 2'}
    ]
});

table.addEventListener('click', function(e){
    alert(e.rowData.url);
});

win.add(table);

win.open();

Clicking on the row will suppose to alert the custom property, which is the url of the rows. Since the webview has a url property, this sample code will return undefined. This PR fixed that.

mtnlife999 pushed a commit that referenced this pull request Jul 25, 2013
[TIMOB-14528] Allow custom properties on proxies even if they exist on o...
@mtnlife999 mtnlife999 merged commit eafaa47 into appcelerator-archive:master Jul 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants