Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10522

Event binding in Hello World is misleading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None

    Description

      It is our recommendation that you bind to all of the Cordova events (pause, resume, etc.) in your deviceready callback so as to ensure that cordova.js and all your plugins are done being loaded. This is mentioned in the events guide in the documentation

      However, we include a bindEvents method in the template which implies that all event binding should happen there. We should probably just remove bindEvents altogether and add the event listener for deviceready in the initialize method since the other events we mention seem to be out of date. We should also add a comment explaining where Cordova related events should be bound to.

      Attachments

        Activity

          People

            sarangan12 Sarangan Rajamanickam
            riknoll Richard B Knoll
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: