Project: titanium
Issue TIMOB-19213: Windows: fireEvent fires only one listener
{{fireEvent}} fires only one listener when multiple listener is attached to the event. For example following example should fires two listeners but only "app:test1" is shown on the console. {code} var win = Ti.UI.createWindow({ backgroundColor: 'blue' }); var btn = Ti.UI.createButton({ title: 'fireEvent' }); btn.addEventListener('click', function () { Ti.App.fireEvent('app:test'); }); Ti.App.addEventListener('app:test', function () { Ti.API.info('app:test 1'); }); Ti.App.addEventListener('app:test', function () { Ti.API.info('app:test 2'); }); win.add(btn); win.open(); {code}
Story points: 8