You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/05/01 23:04:24 UTC

js commit: Fixing CB-560

Updated Branches:
  refs/heads/master 1c9ac3578 -> 9cfdc134f


Fixing CB-560


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/9cfdc134
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/9cfdc134
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/9cfdc134

Branch: refs/heads/master
Commit: 9cfdc134f83b5d51f655e52ec7d4ddab167437c7
Parents: 1c9ac35
Author: Fil Maj <ma...@gmail.com>
Authored: Tue May 1 16:16:12 2012 -0400
Committer: shazron <sh...@gmail.com>
Committed: Tue May 1 13:58:05 2012 -0700

----------------------------------------------------------------------
 lib/common/common.js |   16 +++++++++++++++-
 lib/cordova.js       |    4 ++--
 2 files changed, 17 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/9cfdc134/lib/common/common.js
----------------------------------------------------------------------
diff --git a/lib/common/common.js b/lib/common/common.js
index e2fbc96..c6a1296 100644
--- a/lib/common/common.js
+++ b/lib/common/common.js
@@ -8,6 +8,20 @@ module.exports = {
                 }
             }
         },
+        Cordova: {
+            children: {
+                exec: {
+                    path: 'cordova/exec'
+                }
+            }
+        },
+        PhoneGap:{
+            children: {
+                exec: {
+                    path: 'cordova/exec'
+                }
+            }
+        },
         navigator: {
             children: {
                 notification: {
@@ -177,4 +191,4 @@ module.exports = {
             path: 'cordova/plugin/resolveLocalFileSystemURI'
         }
     }
-};
\ No newline at end of file
+};

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/9cfdc134/lib/cordova.js
----------------------------------------------------------------------
diff --git a/lib/cordova.js b/lib/cordova.js
index 5050f8c..d3da481 100644
--- a/lib/cordova.js
+++ b/lib/cordova.js
@@ -278,10 +278,10 @@ function deprecateFunctions(obj, objLabel) {
  * TODO: remove in 2.0.
  */
 if (!window.PhoneGap) {
-    window.PhoneGap = cordova;
+    window.PhoneGap = deprecateFunctions(cordova, 'PhoneGap');
 }
 if (!window.Cordova) {
-    window.Cordova = cordova;
+    window.Cordova = deprecateFunctions(cordova, 'Cordova');
 }
 
 /**