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

ASF subversion and git services commented on CB-4942:
-----------------------------------------------------

Commit 07a50463e364daf9066c7d7e3ae033850f3e6db4 in branch refs/heads/3.1.x from 
[~csantana]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=07a5046 ]

[CB-4942] [BlackBerry10]  deviceready is never fired
    - Fix typo event.toLowerCase to type.type.toLowerCase
    - Added eventListener for webworksReady to allow nativeReady to fire

    Reviewed By: Jeffrey Heifetz <[email protected]>
    Tested By: Tracy Li <[email protected]>


> 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
>
> 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)

Reply via email to