You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/05/17 19:53:30 UTC

[12/26] js commit: [Tizen, Tien SDK 2.0 (Magnolia)]

[Tizen, Tien SDK 2.0 (Magnolia)]

adapt to new sdk

System Info API where changed

now the information is obtained threaw a synchronous call, getCapabilities()
returning a SystemInfoDeviceCapability variable

name is deprecated

device version = deviceCapabilities.platformVersion;
device uuid = deviceCapabilities.duid;
device model = deviceCapabilities.platformName;


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/4ad9875c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/4ad9875c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/4ad9875c

Branch: refs/heads/3.0.0
Commit: 4ad9875c1739e7f91e751505c20a397dd91f293d
Parents: 3a386e5
Author: pplaquette <pp...@apache.org>
Authored: Wed Apr 17 11:25:35 2013 +0200
Committer: pplaquette <pp...@apache.org>
Committed: Fri Apr 19 11:07:14 2013 +0200

----------------------------------------------------------------------
 lib/tizen/plugin/tizen/Device.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/4ad9875c/lib/tizen/plugin/tizen/Device.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/Device.js b/lib/tizen/plugin/tizen/Device.js
index 6c80f92..ae63d38 100644
--- a/lib/tizen/plugin/tizen/Device.js
+++ b/lib/tizen/plugin/tizen/Device.js
@@ -32,10 +32,8 @@ function Device() {
     this.model = null;
     this.cordova = "2.5.0";
     this.platform = "Tizen";
-    
    
-    this.getDeviceInfo()
-    
+    this.getDeviceInfo();
 }
 
 Device.prototype.getDeviceInfo = function() {
@@ -53,8 +51,6 @@ Device.prototype.getDeviceInfo = function() {
      else {
          console.log("error initializing cordova: ");
      }
-
-
 };
 
 module.exports = new Device();