cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SangChanLee (JIRA)" <>
Subject [jira] [Created] (CB-8785) evalJS's javascript need try/catch.
Date Thu, 02 Apr 2015 04:23:52 GMT
SangChanLee created CB-8785:

             Summary: evalJS's javascript need try/catch.
                 Key: CB-8785
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 3.5.0
            Reporter: SangChanLee
             Fix For: Master

Sometimes, There's no cordova object on html files. But, unfortunately CVViewController calls
some notification using notification center and call evalJS using these method. (cordova.fireDocumentEvent('resign'),
cordova.fireDocumentEvent('resume'), cordova.fireDocumentEvent('active'), cordova.fireDocumentEvent('pause')).

But evalJS's javascript starts with cordova.require. So, at that time there's no cordova object?
Show's big alert view. 
Need try/catch for this.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message