[
https://issues.apache.org/jira/browse/CB-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carlos Santana reopened CB-4942:
--------------------------------
> BlackBerry10 never fires deviceready using cordova-js 3.1.0-rc1
> ---------------------------------------------------------------
>
> Key: CB-4942
> URL: https://issues.apache.org/jira/browse/CB-4942
> Project: Apache Cordova
> Issue Type: Bug
> Components: BlackBerry, CordovaJS
> Affects Versions: Master, 3.1.0
> Reporter: Carlos Santana
> Assignee: Carlos Santana
> Fix For: 3.1.0
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.1#6144)