Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3711] Confirm TIMOB-2874

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-04-26T15:10:22.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-17
ComponentsAndroid
Labelsn/a
ReporterDon Thorp
AssigneeBill Dawson
Created2011-04-26T09:26:47.000+0000
Updated2011-04-26T15:10:22.000+0000

Description

Comments

  1. Bill Dawson 2011-04-26

    Titanium Mobile 1.7.0 6b80fd9 HTC Desire, Android 2.2 No test or fail case attached to the item. :\ Confirmed that fireSyncEvent exists, runs and causes an event to be raised. Whether it actually happened synchronously?... wouldn't know other than by stepping through it, I imagine. My test app.js:
       
       /*global Ti, Titanium, alert, JSON, require, setTimeout, setInterval */
       Titanium.UI.setBackgroundColor('#000');
       var win = Titanium.UI.createWindow({  
           title:'Test',
           backgroundColor:'#000',
       	exitOnClose: true
       });
       
       win.addEventListener('jimmy', function(e) {
       	alert('jimmy fired and says "' + e.message + '".');
       });
       
       var btn = Ti.UI.createButton({
       	title: 'click me to fire jimmy'
       });
       btn.addEventListener('click', function(){
       	win.fireSyncEvent('jimmy', {message: 'how do?'});
       });
       win.add(btn);
       
       win.open();
       

JSON Source