[ 
https://issues.apache.org/jira/browse/CB-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13780645#comment-13780645
 ] 

Carlos Santana commented on CB-4942:
------------------------------------

Proposed fix
https://github.com/apache/cordova-js/pull/51

                
> BlackBerry10 never fires deviceready using cordova 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to