incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [17/28] git commit: Skip blackberry.app.event.onExit on Playbook.
Date Tue, 03 Jan 2012 20:22:59 GMT
Skip blackberry.app.event.onExit on Playbook.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/20b6d0d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/20b6d0d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/20b6d0d9

Branch: refs/heads/master
Commit: 20b6d0d9e9c05587fadef0ca7a77688fffdbc90f
Parents: e2917aa
Author: Michael Brooks <michael@michaelbrooks.ca>
Authored: Fri Nov 25 14:55:57 2011 -0800
Committer: Michael Brooks <michael@michaelbrooks.ca>
Committed: Fri Nov 25 14:55:57 2011 -0800

----------------------------------------------------------------------
 javascript/app.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/20b6d0d9/javascript/app.js
----------------------------------------------------------------------
diff --git a/javascript/app.js b/javascript/app.js
index 5336f16..92e041a 100644
--- a/javascript/app.js
+++ b/javascript/app.js
@@ -211,6 +211,8 @@
     /**
      * Trap BlackBerry WebWorks exit. Allow plugins to clean up before exiting.
      */
-    blackberry.app.event.onExit(exitApp);
+    if (blackberry.app.event.onExit) {
+        blackberry.app.event.onExit(exitApp);
+    }
 
 }());


Mime
View raw message