incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [2/2] js commit: [CB-1013] updated JS for BlackBerry integration into common device module.
Date Thu, 12 Jul 2012 20:27:06 GMT
[CB-1013] updated JS for BlackBerry integration into common device module.


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

Branch: refs/heads/device
Commit: d0d687f6873063400539409ae82866d80b8eca71
Parents: 58b299e
Author: Fil Maj <maj.fil@gmail.com>
Authored: Thu Jul 12 13:26:31 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu Jul 12 13:26:31 2012 -0700

----------------------------------------------------------------------
 lib/blackberry/platform.js                 |    6 ------
 lib/blackberry/plugin/blackberry/device.js |   23 -----------------------
 2 files changed, 0 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/d0d687f6/lib/blackberry/platform.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/platform.js b/lib/blackberry/platform.js
index 0eee961..730fdc1 100644
--- a/lib/blackberry/platform.js
+++ b/lib/blackberry/platform.js
@@ -145,9 +145,6 @@ module.exports = {
                 }
             }
         },
-        device: {
-            path: "cordova/plugin/blackberry/device"
-        },
         File: { // exists natively on BlackBerry OS 7, override
             path: "cordova/plugin/File"
         }
@@ -158,9 +155,6 @@ module.exports = {
                 contacts: {
                     path: 'cordova/plugin/blackberry/contacts'
                 },
-                device: {
-                    path: 'cordova/plugin/blackberry/device'
-                },
                 notification: {
                     path: 'cordova/plugin/blackberry/notification'
                 }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/d0d687f6/lib/blackberry/plugin/blackberry/device.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/plugin/blackberry/device.js b/lib/blackberry/plugin/blackberry/device.js
deleted file mode 100644
index 0640678..0000000
--- a/lib/blackberry/plugin/blackberry/device.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var me = {},
-    channel = require('cordova/channel'),
-    exec = require('cordova/exec');
-
-channel.onCordovaReady.subscribeOnce(function() {
-    exec(function (device) {
-        me.platform = device.platform;
-        me.version  = device.version;
-        me.name     = device.name;
-        me.uuid     = device.uuid;
-        me.cordova  = device.cordova;
-
-        channel.onCordovaInfoReady.fire();
-    },function (e) {
-        console.log("error initializing cordova: " + e);
-    },
-        "Device",
-        "getDeviceInfo",
-        []
-    );
-});
-
-module.exports = me;
\ No newline at end of file


Mime
View raw message