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

BlackBerry: Not able to get e.source on click event for UI controls such as window, view, button etc

    Details

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

      Description

      Not getting e.source on click event for UI controls.
      Checked with view,button and window.

      This is not a regression.

      Steps to reproduce:
      1) Make a test Project and replace app.js with the code given below.
      2) Launch the app.
      3) After the app gets launched. Click the button.

      var win = Ti.UI.createWindow({backgroundColor:'white'});
        
      var btn = Ti.UI.createButton({
          title: 'click me',
          height: 50,
          width: 150,
          color:'black'
      });
       
      btn.addEventListener('click',function(e){
          alert(JSON.stringify(e.source));
      });
      win.add(btn);
      win.open();
      

      Actual Result: Do not get anything it just returns empty JSON as"{}"

      Expected Result:It must return button properties as in ios and android.

        Attachments

          Activity

            People

            • Assignee:
              penrique Pedro Enrique (Inactive)
              Reporter:
              pagarwal Priya Agarwal
              Reviewer:
              Russell McMahon
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration