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 GitHub Bot (JIRA)" <ji...@apache.org> on 2014/07/24 03:12:39 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=14072662#comment-14072662 ]
ASF GitHub Bot commented on CB-5815:
------------------------------------
GitHub user jsoref opened a pull request:
https://github.com/apache/cordova-blackberry/pull/170
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
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jsoref/cordova-blackberry cb_5815
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-blackberry/pull/170.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #170
----
commit 3df35666d51d8ad6da62cee1f36b4c9afe827dc8
Author: Josh Soref <js...@blackberry.com>
Date: 2014-07-24T01:08:16Z
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.2#6252)