Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15255] BlackBerry: Events not listened give warning on fire: 'Unsupported event name'

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-18T20:30:02.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 22, 2013 Sprint 22 API, Release 3.2.0
ComponentsBlackBerry
Labelsaddeventlistener, blackberry, events, qe-testadded
ReporterGertjan Smits
AssigneePedro Enrique
Created2013-09-16T13:21:21.000+0000
Updated2014-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

Comments

  1. Pedro Enrique 2013-10-18

  2. Samuel Dowse 2013-11-14

    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
       [INFO] not listening to event2
       [INFO] not listening to event4
       
    This is expected from the code so marking this as closed.

JSON Source