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

iOS: Application Error setting data with object at app.js

    Details

      Description

      Testing module TableView I ran in to issue that iOS Simulator launches with an application error.(See attached)
      It applies to iOS device as well.

      Android works fine.

      regression works in 3.0.2.GA
      Note:
      3.1.0.v20130311190952 - fails
      3.1.0.v20130312015656 - fails
      3.1.0.v20130311151655 - works

      Test steps:
      Run the following code:

      var win = Titanium.UI.createWindow();
       
      var data = [
      {title:'Smoke_Sample', hasChild:true, level:"smoke"}
      ]
      var tableView = Ti.UI.createTableView();
       
      tableView.setData(data);
       
      win.add(tableView);
      win.open();
      

      Actual result:
      [ERROR] :  Script Error

      { [ERROR] :   backtrace = "#0 () at :0"; [ERROR] :   line = 8; [ERROR] :   message = "invalid method 'setData:withObject:'"; [ERROR] :   sourceId = 316725760; [ERROR] :   sourceURL = "file://localhost/Users/oromero/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CA47C5F2-C01C-48A5-9E11-06863A18B9A8/getwell.app/app.js"; [ERROR] :  }

      Expected result:
      App should launch with no error

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              oromero Olga Romero
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code