You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/08/31 00:41:55 UTC
docs commit: [CB-1121] Camera.getPicture iOS quirk has bad code in it
Updated Branches:
refs/heads/master 4597d55f6 -> ce0c22748
[CB-1121] Camera.getPicture iOS quirk has bad code in it
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/ce0c2274
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/ce0c2274
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/ce0c2274
Branch: refs/heads/master
Commit: ce0c2274861c9b37978a628c8b3a47bd6d2a617b
Parents: 4597d55
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Aug 30 15:41:49 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Aug 30 15:41:49 2012 -0700
----------------------------------------------------------------------
docs/en/edge/cordova/camera/camera.getPicture.md | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/ce0c2274/docs/en/edge/cordova/camera/camera.getPicture.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/camera/camera.getPicture.md b/docs/en/edge/cordova/camera/camera.getPicture.md
index 4ba48ea..f3378d0 100644
--- a/docs/en/edge/cordova/camera/camera.getPicture.md
+++ b/docs/en/edge/cordova/camera/camera.getPicture.md
@@ -58,7 +58,11 @@ Supported Platforms
iOS Quirks
----------
-Including a JavaScript alert() in either of the callback functions can cause problems. Wrap the alert in a setTimeout() to allow the iOS image picker or popover to fully close before the alert is displayed: setTimeout("alert('message');", 0);
+Including a JavaScript alert() in either of the callback functions can cause problems. Wrap the alert in a setTimeout() to allow the iOS image picker or popover to fully close before the alert is displayed:
+
+ setTimeout(function() {
+ // do your thing here!
+ }, 0);
Windows Phone 7 Quirks
----------------------