cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject js commit: CB-5247 [BlackBerry10] Map blackberry.event to document
Date Sun, 03 Nov 2013 03:17:26 GMT
Updated Branches:
  refs/heads/master 4e2e780d4 -> 9bbf2b75e


CB-5247 [BlackBerry10] Map blackberry.event to document


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/9bbf2b75
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/9bbf2b75
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/9bbf2b75

Branch: refs/heads/master
Commit: 9bbf2b75e4d18ca8044c54d43796372f55658918
Parents: 4e2e780
Author: Bryan Higgins <bhiggins@blackberry.com>
Authored: Fri Nov 1 15:39:29 2013 -0400
Committer: Bryan Higgins <bryan@bryanhiggins.net>
Committed: Sat Nov 2 23:12:32 2013 -0400

----------------------------------------------------------------------
 lib/blackberry10/platform.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/9bbf2b75/lib/blackberry10/platform.js
----------------------------------------------------------------------
diff --git a/lib/blackberry10/platform.js b/lib/blackberry10/platform.js
index 24e3197..96f9a66 100644
--- a/lib/blackberry10/platform.js
+++ b/lib/blackberry10/platform.js
@@ -144,9 +144,13 @@ module.exports = {
         };
 
         //map blackberry.event to document for backwards compatibility
-        if (!blackberry) {
-            blackberry = {};
+        if (!window.blackberry) {
+            window.blackberry = {};
+        }
+        window.blackberry.event = 
+        {
+            addEventListner: document.addEventListener,
+            removeEventListener: document.removeEventListener
         }
-        blackberry.event = document;
     }
 };


Mime
View raw message