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

BlackBerry: 'e.source' returns {object object} instead of the object name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.1.2
    • Component/s: BlackBerry
    • Environment:

      Description

      Description:
      1. Create a default app for BB & replace the code in the app.js with the code below:

       
      var win = Ti.UI.createWindow({
        backgroundColor: 'white',
        title: 'ScrollView Demo'
      });
       
      var scrollView = Ti.UI.createScrollView({
        contentWidth: 'auto',
        contentHeight: 'auto',
        showVerticalScrollIndicator: true,
        showHorizontalScrollIndicator: true,
        height: '80%',
        width: '80%',
        backgroundColor:'#336699'
      });
       
      scrollView.addEventListener('click',function(e){
          Ti.API.info(e.source);
          Ti.API.info(JSON.stringify(e.source));
          Ti.API.info(JSON.stringify(e));
      });
      win.add(scrollView);
      win.open();
      

      2. Build & run on BB device/simulator
      3. On the app launch tap on the scrollview & observe the studio console

      Actual Results:
      1. We get

      {object object}

      rather than the object name

      Expected Result:
      1. We should get the object name Ti.UI.scrollview

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                lokeshchdhry Lokesh Choudhary (Inactive)
                Reviewer:
                Russell McMahon
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code