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

BlackBerry10 never fires deviceready using cordova-js 3.1.0-rc1

    XMLWordPrintableJSON

Details

    Description

      repo cordova-blackberry master#3.1.x has an old cordova.js #3.0.0-0-ge670de9

      The problem is that webworksready never gets register and nativeready fires
      Also a typo on the compare for "webworksready"

      The fix is to update platform.js:

      From
      if (event.toLowerCase() === 'webworksready') {
      needs to be:
      if (type.toLowerCase() === 'webworksready') {

      Then add the listener
      channel.onDOMContentLoaded.subscribe(function () {
      document.addEventListener("webworksready", function ()

      { fireWebworksReadyEvent(); }

      );
      });

      will submit pull request

      Attachments

        Activity

          People

            csantana Carlos Santana
            csantana Carlos Santana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: