Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #209 from daattali/patch-1
Browse files Browse the repository at this point in the history
[#209] Fix deviceready wording.
  • Loading branch information
mwbrooks committed Jul 12, 2016
2 parents cb81935 + 28da39d commit fec52ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/2-tutorials/2-develop/2-hello-world-explained.html.md
Expand Up @@ -44,7 +44,7 @@ This calls the `initialize` function on the app variable defined in the index.js

## `deviceready`

The other important Cordova-specific feature to point out is the `deviceready` event. This event signals that Cordova's device APIs have loaded and are ready to access. If you don't rely on this event and only then start making calls to Cordova APIs then you could end up in a situation where the native code is not yet fully loaded and not available. Applications typically attach an event listener with `document.addEventListener` once the HTML document's DOM has loaded as shown below and in the default Hello application:
The other important Cordova-specific feature to point out is the `deviceready` event. This event signals that Cordova's device APIs have loaded and are ready to access. If you start making calls to Cordova APIs without relying on this event, you could end up in a situation where the native code is not yet fully loaded and not available. Applications typically attach an event listener with `document.addEventListener` once the HTML document's DOM has loaded as shown below and in the default Hello application:

```js
document.addEventListener('deviceready', this.onDeviceReady, false);
Expand Down

0 comments on commit fec52ee

Please sign in to comment.