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

Undefined function is called when orientation change

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0, 1.6.1, 1.7.0
    • 1.8.0
    • cordova-ios
    • None
    • ipod, ios 5.1

    Description

      I get an undefined exception when changing the orientation of the device.
      Steps to "recreate":

      in a new project, add the following in index.html:

      function onDeviceReady()
      {
      // do your thing!
      navigator.notification.alert("Cordova is working")
      window.onerror=function(error_msg, URL, line_number)

      { console.log("WINDOW > Message: " + error_msg); console.log("WINDOW > URL: " + URL); console.log("WINDOW > Line: " + line_number); }

      }

      And then in the simulator, rotate the screen.

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            dieppe Clement Vollet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: