[
https://issues.apache.org/jira/browse/CB-908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Filip Maj resolved CB-908.
--------------------------
Resolution: Fixed
JS patched in
[97e4a5|https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=97e4a5cb94aeb82261ffb07601218cef9854ae0e].
Docs patched in
[503232|https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-docs.git;a=commit;h=503232486ba64d39595b8dd1c5f93138a9906a87].
> 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