Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-679] fireEvent('click') not working for button objects

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:53.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.2.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:34:16.000+0000
Updated2011-04-17T01:53:53.000+0000

Description

doing this:

var win = Ti.UI.createWindow();
var b = Ti.UI.createButton({title:'foo', height:40, width:200});
win.add(b);

b.addEventListener('click', function(){alert('clicked')});

b.fireEvent('click');

Comments

  1. Jeff Haynie 2011-04-15

    (from [34054f844730a62a4bc57356aa6164a4d642eaa8]) - [#679 state:resolved] fixed fireEvent issue on regular proxies when calling from JS - initial add of document viewer for ipad, not fully working well yet http://github.com/appcelerator/titanium_mobile/commit/34054f844730a62a4bc57356aa6164a4d642eaa8"> http://github.com/appcelerator/titanium_mobile/commit/34054f844730a...

JSON Source