Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14837] BlackBerry: 'e.source' returns {object object} instead of the object name

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-09-17T00:01:45.000+0000
Affected Version/sRelease 3.1.2
Fix Version/s2013 Sprint 19, 2013 Sprint 19 API, Release 3.2.0
ComponentsBlackBerry
Labelsqe-3.1.2, qe-nfc, qe-testadded
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-08-12T21:56:56.000+0000
Updated2014-02-19T23:44:03.000+0000

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

Comments

  1. Pedro Enrique 2013-09-16

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/174
  2. Priya Agarwal 2013-11-12

    Tested Environment: Appcelerator Studio: 3.2.0.201311120707 SDK:3.2.0.v20131111174605 alloy: 1.3.0 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.0.3 Xcode:5.0.1 Device: Blackeberry Z 10 OS: Mac OSX 10.9 'e.source' returns object name. Closing as fixed. Working as expected.

JSON Source