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 2013/01/23 23:03:13 UTC
docs commit: [CB-2291] Change full example of "online" event to
reflect timing change (for 2.2.0 and above)
Updated Branches:
refs/heads/master f52c21403 -> 704c2a1c4
[CB-2291] Change full example of "online" event to reflect timing change (for 2.2.0 and above)
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/704c2a1c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/704c2a1c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/704c2a1c
Branch: refs/heads/master
Commit: 704c2a1c49c22b9b42e1fa723c22ef12af7d6e82
Parents: f52c214
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Jan 23 14:03:05 2013 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Jan 23 14:03:05 2013 -0800
----------------------------------------------------------------------
docs/en/2.2.0/cordova/events/events.online.md | 2 +-
docs/en/2.3.0/cordova/events/events.online.md | 2 +-
docs/en/edge/cordova/events/events.online.md | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/704c2a1c/docs/en/2.2.0/cordova/events/events.online.md
----------------------------------------------------------------------
diff --git a/docs/en/2.2.0/cordova/events/events.online.md b/docs/en/2.2.0/cordova/events/events.online.md
index 67f4806..f76a560 100644
--- a/docs/en/2.2.0/cordova/events/events.online.md
+++ b/docs/en/2.2.0/cordova/events/events.online.md
@@ -67,13 +67,13 @@ Full Example
// it will call the event `deviceready`.
//
function onLoad() {
+ document.addEventListener("online", onOnline, false);
document.addEventListener("deviceready", onDeviceReady, false);
}
// Cordova is loaded and it is now safe to make calls Cordova methods
//
function onDeviceReady() {
- document.addEventListener("online", onOnline, false);
}
// Handle the online event
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/704c2a1c/docs/en/2.3.0/cordova/events/events.online.md
----------------------------------------------------------------------
diff --git a/docs/en/2.3.0/cordova/events/events.online.md b/docs/en/2.3.0/cordova/events/events.online.md
index c3b1997..9540c22 100644
--- a/docs/en/2.3.0/cordova/events/events.online.md
+++ b/docs/en/2.3.0/cordova/events/events.online.md
@@ -68,13 +68,13 @@ Full Example
// it will call the event `deviceready`.
//
function onLoad() {
+ document.addEventListener("online", onOnline, false);
document.addEventListener("deviceready", onDeviceReady, false);
}
// Cordova is loaded and it is now safe to make calls Cordova methods
//
function onDeviceReady() {
- document.addEventListener("online", onOnline, false);
}
// Handle the online event
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/704c2a1c/docs/en/edge/cordova/events/events.online.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/events/events.online.md b/docs/en/edge/cordova/events/events.online.md
index 7f720ad..153e625 100644
--- a/docs/en/edge/cordova/events/events.online.md
+++ b/docs/en/edge/cordova/events/events.online.md
@@ -68,13 +68,13 @@ Full Example
// it will call the event `deviceready`.
//
function onLoad() {
+ document.addEventListener("online", onOnline, false);
document.addEventListener("deviceready", onDeviceReady, false);
}
// Cordova is loaded and it is now safe to make calls Cordova methods
//
function onDeviceReady() {
- document.addEventListener("online", onOnline, false);
}
// Handle the online event