Github user dblotsky commented on a diff in the pull request: https://github.com/apache/cordova-app-hello-world/pull/15#discussion_r52271030 --- Diff: www/js/index.js --- @@ -19,22 +19,20 @@ var app = { // Application Constructor initialize: function() { - this.bindEvents(); - }, - // Bind Event Listeners - // - // Bind any events that are required on startup. Common events are: - // 'load', 'deviceready', 'offline', and 'online'. - bindEvents: function() { document.addEventListener('deviceready', this.onDeviceReady, false); --- End diff -- Any variables in `app`'s scope are already in `onDeviceReady`'s scope.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org