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

remove calls to alert()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • cordova-js
    • None

    Description

      I've run into some cases of alert() usage in the cordova-js code. I think this is inappropriate, since we are using the cordova-js code in other environments than the browser, like the test harness. I end up seeing errors thrown on "alert() not defined" and such, which is masking the actual error from me.

      Instead, we should define an alert()-y function somewhere - like cordova.alert(). This function can sniff if alert() is available, and if not, console.log() or the equivalent.

      Attachments

        Activity

          People

            filmaj Filip Maj
            pmuellr Patrick Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: