Filip Maj created CB-908:
----------------------------
Summary: Wrap all user event handler callback functions in a
setTimeout call
Key: CB-908
URL: https://issues.apache.org/jira/browse/CB-908
Project: Apache Cordova
Issue Type: Improvement
Components: CordovaJS, Docs
Affects Versions: 1.8.0
Reporter: Filip Maj
Assignee: Filip Maj
Fix For: 1.9.0
Recently in iOS, if you attached an event handler to resume and have some
manner of UI-related code in there (say, an {{alert}}), it would crash the app.
As such, our the docs detail an iOS "quirk" for this and recommends wrapping
your function with a {{setTimeout}} call to avoid this crash.
cordova-js should just do this for you.
All callback functions attached to a channel should be wrapped in a
{{setTimeout}} before invoking.
We can then remove the quirk from the docs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira