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

Windows: Unable to call updateRow with an already existing row

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.1.v20170614134051
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      5
    • Sprint:
      2017 Sprint 17 SDK

      Description

      Description

      Calling updateRow with a row that already exists in the tableview freezes the app

      var _window = Ti.UI.createWindow();
      var data = [{
          title: 'Row 1'
      }, {
          title: 'Row 2'
      }];
      var table = Ti.UI.createTableView({
          data: data
      });
      _window.add(table);
      table.addEventListener('click', TableClick);
      function TableClick(evt) {
          alert('table row clicked');
      }
      var btn2 = Ti.UI.createButton({
          title: 'update row 1',
          width: 120,
          height: 50,
          left: 10,
          bottom: 0
      });
      btn2.addEventListener('click', DoBtn2Click);
      _window.add(btn2);
      function DoBtn2Click() {
          table.updateRow(0, table.data[0].rows[0]);
      }
      _window.open();
      
      

      Steps to reproduce
      1. Add the above to an existing app.js
      2. Build for a windows target
      Actual

      App freezes

      Expected

      Unsure, adding a UI element twice usually causes an error on Windows, could we pull properties from the existing one and create a new one based from that?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration