Updated Branches:
  refs/heads/master 9cd8f62f3 -> 503232486

[CB-908] removed ios resume quirk relating to interactive calls needing to be 
wrapped in a settimeout. cordova-js now does this for the user.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/50323248
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/50323248
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/50323248

Branch: refs/heads/master
Commit: 503232486ba64d39595b8dd1c5f93138a9906a87
Parents: 9cd8f62
Author: Fil Maj <[email protected]>
Authored: Wed Jun 13 13:32:47 2012 -0700
Committer: Fil Maj <[email protected]>
Committed: Wed Jun 13 13:32:47 2012 -0700

----------------------------------------------------------------------
 docs/en/edge/cordova/events/events.resume.md |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/50323248/docs/en/edge/cordova/events/events.resume.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/events/events.resume.md 
b/docs/en/edge/cordova/events/events.resume.md
index 159b448..38b437f 100644
--- a/docs/en/edge/cordova/events/events.resume.md
+++ b/docs/en/edge/cordova/events/events.resume.md
@@ -90,16 +90,6 @@ iOS Quirks
 --------------------------
 Any calls to console.log during your **pause** event handler will be run now 
when the app resumes, see the iOS Quirks section for the **pause** event for an 
explanation. 
 
-Interactive functions like `alert` when the **resume** event fires will need 
to be wrapped in a `setTimeout` call with a timeout value of zero, or else the 
app will hang. e.g.
-
-    document.addEventListener("resume", onResume, false);
-
-    function onResume() {
-       setTimeout(function() {
-              // TODO: do your thing!
-            }, 0);
-    }
-
 - __active__ event 
 
     This iOS specific event is available as a variant of the **resume** event, 
and is often used to detect when the "Lock" button has been pressed to unlock 
the device when your app is the foreground app. If your app (and device) is 
enabled for multi-tasking, this will be paired with a subsequent **resume** 
event, but only under iOS 5 (effectively all "locked" apps in iOS 5 that have 
multi-tasking enabled are put to the background). 

Reply via email to