[TIMOB-3711] Confirm TIMOB-2874
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-26T15:10:22.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.7.0, Sprint 2011-17 |
| Components | Android |
| Labels | n/a |
| Reporter | Don Thorp |
| Assignee | Bill Dawson |
| Created | 2011-04-26T09:26:47.000+0000 |
| Updated | 2011-04-26T15:10:22.000+0000 |
Titanium Mobile 1.7.0 6b80fd9 HTC Desire, Android 2.2 No test or fail case attached to the item. :\ Confirmed that
fireSyncEventexists, 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();