cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-964) Error in success callback should generate event
Date Wed, 01 Oct 2014 23:33:34 GMT


ASF subversion and git services commented on CB-964:

Commit 9eb4f7faf607ae22fb8b6ee31d24fd622dbaf64c in cordova-js's branch refs/heads/master from
[;h=9eb4f7f ]

callbackSuccess|Error both call callbackFromNative, which catches and rethrows the exception
per CB-964

> Error in success callback should generate event
> -----------------------------------------------
>                 Key: CB-964
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaJS
>    Affects Versions: 1.9.0
>            Reporter: Kamen Kanchev
>            Assignee: Jesse MacFadyen
> Error in success callback should generate a document event. This is important when loading,
since for example an error occurs while deviceready. There is a try-catch statement in the
CordovaJS, hence window.onerror() is not detecting the error.
> For example, Sencha Touch 2 fails to load because of localstorage corruption while loading,
an the app crashes. A possible fix in this case is to clear the local storage and to window.location.reload();
> it is very east to fix this one - just add:
> fireDocumentEvent("CDVSuccessCallbackError");

This message was sent by Atlassian JIRA

View raw message