You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/07/12 22:27:06 UTC
[2/2] js commit: [CB-1013] updated JS for BlackBerry integration into
common device module.
[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 <ma...@gmail.com>
Authored: Thu Jul 12 13:26:31 2012 -0700
Committer: Fil Maj <ma...@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