Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11713] event object has differerent properties in 3.0 vs 2.1.3.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-11-17T00:18:28.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2012 Sprint 24, 2012 Sprint 24 API
ComponentsiOS
Labelsmodule_tableview, parity, qe-testadded, triage
ReporterAmuktha Akkinepally
AssigneeIngo Muschenetz
Created2012-11-08T23:35:11.000+0000
Updated2013-07-16T09:32:04.000+0000

Description

e.rowData gives different values in 2.1.3 and 3.0 nightly builds.

Steps to reproduce:

1.Load the below app.js 2. Test it on 2.1.3GA and any 3.0 CI build
var win = Ti.UI.createWindow({
    }),
    table = Ti.UI.createTableView({
        top:0,
        height: "66%"
    }),
    output = Ti.UI.createLabel({
        text: "a\n",
        color: "red",
        width:Ti.UI.FILL,
        height:Ti.UI.SIZE,
        bottom:0
    }),
    row = Ti.UI.createTableViewRow({
        width: Ti.UI.FILL,
        height: 64
    }),
    view = Ti.UI.createView({
        layout: "horizontal"
    }),
    data = [row];

view.add(Ti.UI.createButton({
    style: Ti.UI.iPhone.SystemButtonStyle.PLAIN,
    width: 44,
    height: 44,
    id: "SHARE_BUTTON",
    backgroundColor: "red"
}));

view.add(Ti.UI.createLabel({
    text: "Sdfdsf",
    touchEnabled: true
}));

row.add(view);
table.data = data;

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

table.addEventListener("click", function (e) {
    // ### HERE the event object has differerent properties in 3.0 vs 2.1.3.
    // ex: missing rowData in 3.0!
    Ti.API.warn("clicked: " + e.rowData);
});

Comments

  1. Shak Hossain 2012-11-13

    Escalating it for a customer.
  2. Ping Wang 2012-11-15

    Seems like the same issue as TIMOB-11530 which has been already resolved against the master (3.1.0).
  3. Priya Agarwal 2013-07-16

    Updated label. Verified with; Titanium Studio:3.1.2.201307091843 Titanium SDK: 3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:iPhone Simulator(v6.0) iphone4(v5.1),Galaxy Nexus(v4.0.4) Xcode: 4.5.1

JSON Source