[TIMOB-14837] BlackBerry: 'e.source' returns {object object} instead of the object name
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-17T00:01:45.000+0000 |
Affected Version/s | Release 3.1.2 |
Fix Version/s | 2013 Sprint 19, 2013 Sprint 19 API, Release 3.2.0 |
Components | BlackBerry |
Labels | qe-3.1.2, qe-nfc, qe-testadded |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-08-12T21:56:56.000+0000 |
Updated | 2014-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
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/174
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.