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

1.5.0 regression: Errors accessing custom attributes off of tableViewRow objects (includes testcase)

    Details

      Description

      {html}<div><p>Seems to have happened recently. Here's a small test case. This
      same code works under 1.4.1 fine and iPhone fine:</p>
      <pre>
      <code>var testDate = new Date();
      var dateObj = {bla:"foo", testDateObj:testDate};
      var noDateObj = {bla:"foo"};

      var row = Ti.UI.createTableViewRow({
      _dateObj: dateObj,
      _noDateObj: noDateObj,
      _testDate: testDate
      });

      Ti.API.info("works: " + row._noDateObj.bla);
      Ti.API.info("fails: " + row._dateObj.bla); //Constructor for "Date" not found
      Ti.API.info("fails: " + row._dateObj.testDateObj);
      Ti.API.info("fails: " + row._testDate);

      //Also, may be of interest:
      //Ti.API.info("1: " + row._noDateObj); //"cannot find default value for object" ...is that what should happen?
      //Ti.API.info("2: " + row._dateObj); //"cannot find default value for object" as well</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              robby Robby
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code