cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8785) evalJS's javascript need try/catch.
Date Tue, 05 May 2015 19:55:00 GMT

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

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

Commit 4c3e95cc014af6e8a5645e5098079c4efbc0e50c in cordova-ios's branch refs/heads/master
from [~sangchan82]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=4c3e95c ]

CB-8785 - add try/catch for evalJS: (closes #134)


> evalJS's javascript need try/catch.
> -----------------------------------
>
>                 Key: CB-8785
>                 URL: https://issues.apache.org/jira/browse/CB-8785
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.5.0
>            Reporter: SangChanLee
>             Fix For: 4.0.0
>
>
> 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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message