incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject webworks commit: Synching up javascript files
Date Tue, 24 Jul 2012 20:07:10 GMT
Updated Branches:
  refs/heads/master 0b3056ca7 -> 19b5ee8fb


Synching up javascript files


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/19b5ee8f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/19b5ee8f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/19b5ee8f

Branch: refs/heads/master
Commit: 19b5ee8fbd1b3c6344dfbe32e727bceb79ca918b
Parents: 0b3056c
Author: Tim Kim <tim.kim@nitobi.com>
Authored: Tue Jul 24 13:07:04 2012 -0700
Committer: Tim Kim <tim.kim@nitobi.com>
Committed: Tue Jul 24 13:07:04 2012 -0700

----------------------------------------------------------------------
 javascript/cordova.blackberry.js |    4 +-
 javascript/cordova.playbook.js   |   36 ++++++++++++++------------------
 2 files changed, 18 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/19b5ee8f/javascript/cordova.blackberry.js
----------------------------------------------------------------------
diff --git a/javascript/cordova.blackberry.js b/javascript/cordova.blackberry.js
index d0e546b..04bcbbb 100644
--- a/javascript/cordova.blackberry.js
+++ b/javascript/cordova.blackberry.js
@@ -1,6 +1,6 @@
-// commit 2e33015f0e73540904abc05c4f726c3c9ce6879f
+// commit 7dd17b00544742d14ecdeff2148a66480680f12b
 
-// File generated at :: Thu Jul 19 2012 11:37:38 GMT-0700 (PDT)
+// File generated at :: Tue Jul 24 2012 13:05:33 GMT-0700 (PDT)
 
 /*
  Licensed to the Apache Software Foundation (ASF) under one

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/19b5ee8f/javascript/cordova.playbook.js
----------------------------------------------------------------------
diff --git a/javascript/cordova.playbook.js b/javascript/cordova.playbook.js
index 3cdf506..13ba872 100644
--- a/javascript/cordova.playbook.js
+++ b/javascript/cordova.playbook.js
@@ -1,6 +1,6 @@
-// commit 2e33015f0e73540904abc05c4f726c3c9ce6879f
+// commit 7dd17b00544742d14ecdeff2148a66480680f12b
 
-// File generated at :: Thu Jul 19 2012 11:37:38 GMT-0700 (PDT)
+// File generated at :: Tue Jul 24 2012 13:05:33 GMT-0700 (PDT)
 
 /*
  Licensed to the Apache Software Foundation (ASF) under one
@@ -943,9 +943,6 @@ module.exports = {
     id: "playbook",
     initialize:function() {},
     objects: {
-        device: {
-            path: "cordova/plugin/playbook/device"
-        },
         DirectoryReader:{
             path: 'cordova/plugin/playbook/DirectoryReader'
         },
@@ -966,13 +963,6 @@ module.exports = {
         }
     },
     merges: {
-        navigator: {
-            children: {
-                device: {
-                    path: "cordova/plugin/playbook/device"
-                }
-            }
-        },
         DirectoryEntry: {
             path: 'cordova/plugin/playbook/DirectoryEntry'
         },
@@ -4432,6 +4422,7 @@ document.addEventListener("deviceready", logger.__onDeviceReady, false);
 define("cordova/plugin/manager", function(require, exports, module) {
 var cordova = require('cordova'),
     plugins = {
+        'Device' : require('cordova/plugin/playbook/device'),
         'Battery' : require('cordova/plugin/playbook/battery'),
         'Camera' : require('cordova/plugin/playbook/camera'),
         'Logger' : require('cordova/plugin/playbook/logger'),
@@ -6059,21 +6050,26 @@ module.exports = {
 
 // file: lib/playbook/plugin/playbook/device.js
 define("cordova/plugin/playbook/device", function(require, exports, module) {
-var channel = require('cordova/channel');
+var channel = require('cordova/channel'),
+    cordova = require('cordova');
 
 // Tell cordova channel to wait on the CordovaInfoReady event
 channel.waitForInitialization('onCordovaInfoReady');
 
 module.exports = {
-    platform: "PlayBook",
-    version: blackberry.system.softwareVersion,
-    name: blackberry.system.model,
-    uuid: blackberry.identity.PIN,
-    cordova: "2.0.0"
-};
+    getDeviceInfo : function(args, win, fail){
+        win({
+            platform: "PlayBook",
+            version: blackberry.system.softwareVersion,
+            name: blackberry.system.model,
+            uuid: blackberry.identity.PIN,
+            cordova: "2.0.0"
+        });
 
-channel.onCordovaInfoReady.fire();
+        return { "status" : cordova.callbackStatus.NO_RESULT, "message" : "Device info returned"
};
+    }
 
+};
 });
 
 // file: lib/playbook/plugin/playbook/logger.js


Mime
View raw message