You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Greg Roodt (JIRA)" <ji...@apache.org> on 2013/06/20 10:28:21 UTC

[jira] [Commented] (CB-3322) Uncaught JavaScript Exception loading cordova_plugins.json in 2.7.2 when using `cordova serve` or `cordova ripple`

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

Greg Roodt commented on CB-3322:
--------------------------------

This is a real problem. You are unable to successfully run your apps in Ripple. Filip is incorrect.

If you simulate a deviceReady event, it does not fire "deviceReady" and therefore your application will not startup successfully using the common pattern:

// PhoneGap ready
document.addEventListener("deviceReady", function() {
    alert('Phonegap ready');
}, false);

This is frustrating, and a major issue in my opinion.

                
> Uncaught JavaScript Exception loading cordova_plugins.json in 2.7.2 when using `cordova serve` or `cordova ripple`
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-3322
>                 URL: https://issues.apache.org/jira/browse/CB-3322
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, CordovaJS
>    Affects Versions: 2.7.0
>         Environment: Mac OSX developing for iOS and Android
>            Reporter: Sam Breed
>            Assignee: Filip Maj
>            Priority: Minor
>
> This isssue has been brought up before in https://issues.apache.org/jira/browse/CB-3026, but in 2.7.2 it causes an Uncaught Exception which prevents 'deviceready' from triggering.
> The ajax request for `cordova_plugins.json` throws when it tries to parse the response (which isn't valid JSON). The *entire* request is being wrapped in a try/catch, rather than the offending JSON.parse in the onload callback. 
> This is preventing me from upgrading from 2.6.2 -> 2.7.2.

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