incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [9/11] js commit: fixed intendation to 4 spaces
Date Tue, 16 Oct 2012 18:33:27 GMT
fixed intendation to 4 spaces


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

Branch: refs/heads/master
Commit: eb1533dd2119722bcbfc930c79ef3974f8660c83
Parents: 3acbb8d
Author: Markus Leutwyler <mleut@yahoo.com>
Authored: Fri Oct 12 17:27:08 2012 +0200
Committer: Markus Leutwyler <mleut@yahoo.com>
Committed: Fri Oct 12 17:27:08 2012 +0200

----------------------------------------------------------------------
 lib/webos/plugin/webos/device.js |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/eb1533dd/lib/webos/plugin/webos/device.js
----------------------------------------------------------------------
diff --git a/lib/webos/plugin/webos/device.js b/lib/webos/plugin/webos/device.js
index a6dfc42..c0d7e59 100644
--- a/lib/webos/plugin/webos/device.js
+++ b/lib/webos/plugin/webos/device.js
@@ -1,31 +1,31 @@
 var service=require('cordova/plugin/webos/service')
 
 module.exports={
-  getDeviceInfo: function(success, fail, args) {
+    getDeviceInfo: function(success, fail, args) {
     console.log("webOS Plugin: Device - getDeviceInfo");
 
     this.request = service.Request('palm://com.palm.preferences/systemProperties', {
-      method:"Get",
-      parameters:{"key": "com.palm.properties.nduid" },
-      onSuccess: postData
+        method:"Get",
+        parameters:{"key": "com.palm.properties.nduid" },
+        onSuccess: postData
     }); 
 
     function postData(result) {
 
-      var uuid=result["com.palm.properties.nduid"];
+        var uuid=result["com.palm.properties.nduid"];
 
-      var parsedData = JSON.parse(PalmSystem.deviceInfo);
+        var parsedData = JSON.parse(PalmSystem.deviceInfo);
 
-      // fixed data
-      var info={};
-      info.cordova = "2.0.0";
-      info.platform = "HP webOS";
-      // variable data
-      info.name = parsedData.modelName;
-      info.version = parsedData.platformVersion;
-      info.uuid = uuid;
+        // fixed data
+        var info={};
+        info.cordova = "2.0.0";
+        info.platform = "HP webOS";
+        // variable data
+        info.name = parsedData.modelName;
+        info.version = parsedData.platformVersion;
+        info.uuid = uuid;
 
-      success(info);
+        success(info);
     }
 
   }


Mime
View raw message