Macadamian/titanium_mobile — pull request #154 by Harutyun (2012-09-12 13:56:41+00:00)
Title: TIMOB-10516, TIMOB-10315 Ti.UI.Button image property and ListView callba...

TIMOB-10516, TIMOB-10315 - Ti.UI.Button image property and ListView callback index property

Reviewer: JP

ChangeLog:
- index property of the ListView call back has wrong type
- image property is not working for the Ti.UI.Button

TestCases:
1. Run above code and make sure type of the e.index is number

var win = Ti.UI.createWindow();

var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title:
'Carrots'}, {title: 'Potatoes'} ];

var table = Ti.UI.createTableView({
data: tableData
});

table.addEventListener('click',function(e)
{
Titanium.API.info("Type of the property is: " + Object.prototype.toString.call(e.index));
});

win.add(table);
win.open();

2. build sdk and run test project (or KS) for the Titanium Studio, make
sure image property is working for the Ti.UI.Button