Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11713

event object has differerent properties in 3.0 vs 2.1.3.

    Details

      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);
      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                aakkinepally Amuktha Akkinepally
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14908
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code