You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/01/17 19:58:19 UTC

[jira] [Commented] (CB-5815) Runtime errors if application does not reference cordova.js

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

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

Commit 73d3c307e988abad41fd15fe1696cc388120d290 in branch refs/heads/master from [~jsoref]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-blackberry.git;h=73d3c30 ]

CB-5815 cordova not defined when pausing w/o cordova.js included

Don't call cordova.fireDocumentEvent for pause/resume events
unless cordova object is available

BB10 inactive/active events are mapped to Cordova events,
but they shouldn't trigger an exception if cordova.js isn't included


> Runtime errors if application does not reference cordova.js
> -----------------------------------------------------------
>
>                 Key: CB-5815
>                 URL: https://issues.apache.org/jira/browse/CB-5815
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: BlackBerry
>    Affects Versions: 3.3.0
>            Reporter: Josh Soref
>            Assignee: Josh Soref
>            Priority: Minor
>
> 1. cordova create helloWorld 
> 2. cordova platform add blackberry10
> 3. edit helloWorld/www/index.html and remove reference to <script type="text/javascript" src="cordova.js"></script> 
> 3. cordova run 
> 4. using web inspector, watch console as you minimize & restore the app 
> Actual result: 
> ======================= 
> No activity in web inspector console window 
> Expected result: 
> ======================= 
> ReferenceError: Can't find variable: cordova 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)