You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2013/01/17 22:33:13 UTC
docs commit: iOS: Getting Started bad example
Updated Branches:
refs/heads/master c4f27e0c9 -> f4dd20105
iOS: Getting Started bad example
In the example addEventListener is mis-spelled addEventListenter which messes up people who copy the example code.
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/f4dd2010
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/f4dd2010
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/f4dd2010
Branch: refs/heads/master
Commit: f4dd20105658979a5e773a80b61741c53275c3dc
Parents: c4f27e0
Author: Simon MacDonald <si...@gmail.com>
Authored: Thu Jan 17 16:31:57 2013 -0500
Committer: Simon MacDonald <si...@gmail.com>
Committed: Thu Jan 17 16:32:00 2013 -0500
----------------------------------------------------------------------
docs/en/2.3.0/guide/getting-started/ios/index.md | 4 ++--
docs/en/edge/guide/getting-started/ios/index.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f4dd2010/docs/en/2.3.0/guide/getting-started/ios/index.md
----------------------------------------------------------------------
diff --git a/docs/en/2.3.0/guide/getting-started/ios/index.md b/docs/en/2.3.0/guide/getting-started/ios/index.md
index 6c11627..60ae65c 100644
--- a/docs/en/2.3.0/guide/getting-started/ios/index.md
+++ b/docs/en/2.3.0/guide/getting-started/ios/index.md
@@ -257,10 +257,10 @@ Determine where on your system you will locate the Xcode project files for your
Another common method of initializing a page is to add an event listener for the deviceReady event within the handler for the body onload event as shown in the code snippet below:
<head>
- <script type="text/javascript" src="cordova-2.2.0.js"></script>
+ <script type="text/javascript" src="cordova-2.3.0.js"></script>
<script>
function onLoad() {
- document.addEventListenter(
+ document.addEventListener(
‘deviceready’, onDeviceReady, false);
}
function onDeviceReady() {
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f4dd2010/docs/en/edge/guide/getting-started/ios/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/getting-started/ios/index.md b/docs/en/edge/guide/getting-started/ios/index.md
index 6c11627..60ae65c 100644
--- a/docs/en/edge/guide/getting-started/ios/index.md
+++ b/docs/en/edge/guide/getting-started/ios/index.md
@@ -257,10 +257,10 @@ Determine where on your system you will locate the Xcode project files for your
Another common method of initializing a page is to add an event listener for the deviceReady event within the handler for the body onload event as shown in the code snippet below:
<head>
- <script type="text/javascript" src="cordova-2.2.0.js"></script>
+ <script type="text/javascript" src="cordova-2.3.0.js"></script>
<script>
function onLoad() {
- document.addEventListenter(
+ document.addEventListener(
‘deviceready’, onDeviceReady, false);
}
function onDeviceReady() {