incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [37/40] git commit: console.log error in device
Date Fri, 06 Apr 2012 01:20:43 GMT
console.log error in device


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

Branch: refs/heads/master
Commit: ab6752f5fec13e69817f84e2035b6a5120aac906
Parents: 4c43dee
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Thu Feb 23 19:39:16 2012 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Thu Feb 23 19:39:16 2012 -0800

----------------------------------------------------------------------
 lib/platform/wp7.js      |    9 +++++++++
 lib/plugin/wp7/device.js |    4 +++-
 2 files changed, 12 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/ab6752f5/lib/platform/wp7.js
----------------------------------------------------------------------
diff --git a/lib/platform/wp7.js b/lib/platform/wp7.js
index f2d74b4..ddfef78 100644
--- a/lib/platform/wp7.js
+++ b/lib/platform/wp7.js
@@ -2,6 +2,13 @@ module.exports = {
     id: "wp7",
     initialize:function() {},
     objects: {
+		cordova: {
+			children: {
+				CordovaCommandResult: {
+					path:"cordova/plugin/wp7/cordovaCommandResult"
+				}
+			}
+		},
         navigator: {
             children: {
                 device: {
@@ -14,3 +21,5 @@ module.exports = {
         }
     }
 };
+
+

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/ab6752f5/lib/plugin/wp7/device.js
----------------------------------------------------------------------
diff --git a/lib/plugin/wp7/device.js b/lib/plugin/wp7/device.js
index b51fe93..62587f8 100644
--- a/lib/plugin/wp7/device.js
+++ b/lib/plugin/wp7/device.js
@@ -19,8 +19,10 @@ var Device = function()
     } 
     catch(e) {
         // TODO: 
+		
+		console.log("error in device.js : " + e);
     }
-    this.available = PhoneGap.available = !!this.uuid;
+    this.available = Cordova.available = !!this.uuid;
 };
 
 module.exports = new Device();


Mime
View raw message