incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/9] js commit: [windows8] whitespace, remove extra tab
Date Wed, 17 Oct 2012 20:38:34 GMT
Updated Branches:
  refs/heads/master 9eaa875af -> f4759b242


[windows8] whitespace, remove extra tab


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

Branch: refs/heads/master
Commit: f4759b242065c7c89487234d131c313b3fa6adf4
Parents: f23599c
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Oct 16 18:50:12 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Oct 16 18:50:12 2012 -0700

----------------------------------------------------------------------
 lib/windows8/plugin/windows8/DeviceProxy.js |   46 +++++++++++-----------
 1 files changed, 23 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/f4759b24/lib/windows8/plugin/windows8/DeviceProxy.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/DeviceProxy.js b/lib/windows8/plugin/windows8/DeviceProxy.js
index d54edb3..627ce4c 100644
--- a/lib/windows8/plugin/windows8/DeviceProxy.js
+++ b/lib/windows8/plugin/windows8/DeviceProxy.js
@@ -25,32 +25,32 @@ var utils = require('cordova/utils');
 
 module.exports = {
 
-        getDeviceInfo:function(win,fail,args){
-            console.log("NativeProxy::getDeviceInfo");
-
-            // get the name ( hostName of the machine )
-            var hostNames = Windows.Networking.Connectivity.NetworkInformation.getHostNames();
-            var name = "unknown";
-            hostNames.some(function (nm) {
-                if (nm.displayName.indexOf(".local") > -1) {
-                    name = nm.displayName.split(".local")[0];
-                    return true;
-                }
-            });
-
-            // deviceId aka uuid
-            var deviceId = localStorage.deviceId;
-            if(!deviceId) {
-                deviceId = utils.createUUID();
-                console.log(deviceId);
-                localStorage.deviceId = deviceId;
+    getDeviceInfo:function(win,fail,args){
+        console.log("NativeProxy::getDeviceInfo");
+
+        // get the name ( hostName of the machine )
+        var hostNames = Windows.Networking.Connectivity.NetworkInformation.getHostNames();
+        var name = "unknown";
+        hostNames.some(function (nm) {
+            if (nm.displayName.indexOf(".local") > -1) {
+                name = nm.displayName.split(".local")[0];
+                return true;
             }
-
-            setTimeout(function(){
-                win({platform:"windows8", version:"8", name:name, uuid:deviceId, cordova:"2.2.0"});
-            },0);
+        });
+
+        // deviceId aka uuid
+        var deviceId = localStorage.deviceId;
+        if(!deviceId) {
+            deviceId = utils.createUUID();
+            console.log(deviceId);
+            localStorage.deviceId = deviceId;
         }
 
+        setTimeout(function(){
+            win({platform:"windows8", version:"8", name:name, uuid:deviceId, cordova:"2.2.0"});
+        },0);
+    }
+
 };
 
 require("cordova/commandProxy").add("Device",module.exports);


Mime
View raw message