Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
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
  • Loading branch information
jsoref committed Jan 17, 2014
1 parent fb7d095 commit 73d3c307e988abad41fd15fe1696cc388120d290
Showing 1 changed file with 2 additions and 2 deletions.
@@ -24,13 +24,13 @@ var utils = require('./utils'),
pause: {
event: "inactive",
trigger: function () {
webview.executeJavascript("if (cordova) cordova.fireDocumentEvent('pause')");
resume: {
event: "active",
trigger: function () {
webview.executeJavascript("if (cordova) cordova.fireDocumentEvent('resume')");

0 comments on commit 73d3c30

Please sign in to comment.