[TIMOB-15255] BlackBerry: Events not listened give warning on fire: 'Unsupported event name'
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-18T20:30:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 22, 2013 Sprint 22 API, Release 3.2.0 |
Components | BlackBerry |
Labels | addeventlistener, blackberry, events, qe-testadded |
Reporter | Gertjan Smits |
Assignee | Pedro Enrique |
Created | 2013-09-16T13:21:21.000+0000 |
Updated | 2014-02-19T21:39:20.000+0000 |
Description
Not sure what implications this has but still.
Testcase
var i = 1;
function test( eventName ) {
i++;
if( i % 2 === 0 ) {
Ti.App.addEventListener(eventName, function( e ) {
//
});
} else {
Ti.API.info("not listening to " + eventName);
}
Ti.App.fireEvent(eventName);
}
test("event1");
test("event2");
test("event3");
test("event4");
test("event5");
Output
[N_WARNING] virtual int NativeProxyObject::fireEvent(const char*, const TiObject*) const Line 52: Unsupported event name event2
Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311122225 Titanium SDK, build: 3.2.0.v20131113094843 CLI: 3.2.0 Alloy: 1.3.0 BlackBerry Simulator: 10.2.0.1791 Console logged output
This is expected from the code so marking this as closed.