cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject docs commit: [CB-4916]: change examples to not use deprecated property
Date Thu, 26 Sep 2013 15:46:45 GMT
Updated Branches:
  refs/heads/master 67a1f665e -> ee7ab7c8b


[CB-4916]: change examples to not use deprecated property

Change the use of device.name to device.model. Also get device.model
to appear in the main device doc page.


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

Branch: refs/heads/master
Commit: ee7ab7c8b50c5b065001117e34b60126ebf9966d
Parents: 67a1f66
Author: Marcel Kinard <cmarcelk@gmail.com>
Authored: Thu Sep 26 11:41:04 2013 -0400
Committer: Marcel Kinard <cmarcelk@gmail.com>
Committed: Thu Sep 26 11:45:04 2013 -0400

----------------------------------------------------------------------
 docs/en/edge/config.json                       | 5 +++--
 docs/en/edge/cordova/device/device.cordova.md  | 2 +-
 docs/en/edge/cordova/device/device.md          | 8 ++++----
 docs/en/edge/cordova/device/device.model.md    | 3 +--
 docs/en/edge/cordova/device/device.name.md     | 2 +-
 docs/en/edge/cordova/device/device.platform.md | 2 +-
 docs/en/edge/cordova/device/device.uuid.md     | 2 +-
 docs/en/edge/cordova/device/device.version.md  | 2 +-
 8 files changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/config.json
----------------------------------------------------------------------
diff --git a/docs/en/edge/config.json b/docs/en/edge/config.json
index 6a62799..76be7b7 100644
--- a/docs/en/edge/config.json
+++ b/docs/en/edge/config.json
@@ -67,11 +67,12 @@
         ],
         "device.md": [
             "cordova/device/device.md",
-            "cordova/device/device.name.md",
+            "cordova/device/device.model.md",
             "cordova/device/device.cordova.md",
             "cordova/device/device.platform.md",
             "cordova/device/device.uuid.md",
-            "cordova/device/device.version.md"
+            "cordova/device/device.version.md",
+            "cordova/device/device.name.md"
         ],
         "events.md": [
             "cordova/events/events.md",

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/cordova/device/device.cordova.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/device/device.cordova.md b/docs/en/edge/cordova/device/device.cordova.md
index 4c367da..41050b9 100644
--- a/docs/en/edge/cordova/device/device.cordova.md
+++ b/docs/en/edge/cordova/device/device.cordova.md
@@ -58,7 +58,7 @@ Get the version of Cordova running on the device.
         //
         function onDeviceReady() {
             var element = document.getElementById('deviceProperties');
-            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+            element.innerHTML = 'Device Model: '    + device.model    + '<br />' +
                                 'Device Cordova: '  + device.cordova  + '<br />' +
                                 'Device Platform: ' + device.platform + '<br />' +
                                 'Device UUID: '     + device.uuid     + '<br />' +

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/cordova/device/device.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/device/device.md b/docs/en/edge/cordova/device/device.md
index dc3af40..74994a9 100644
--- a/docs/en/edge/cordova/device/device.md
+++ b/docs/en/edge/cordova/device/device.md
@@ -23,20 +23,20 @@
 
 ## Properties
 
-- device.name
+- device.model
 - device.cordova
 - device.platform
 - device.uuid
 - device.version
-- device.model
+- device.name
 
 ## Variable Scope
 
 Since `device` is assigned to the `window` object, it is implicitly in the global scope.
 
     // These reference the same `device`
-    var phoneName = window.device.name;
-    var phoneName = device.name;
+    var phoneModel = window.device.model;
+    var phoneModel = device.model;
 
 ## Accessing the Feature
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/cordova/device/device.model.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/device/device.model.md b/docs/en/edge/cordova/device/device.model.md
index 8d0564d..aed0b97 100644
--- a/docs/en/edge/cordova/device/device.model.md
+++ b/docs/en/edge/cordova/device/device.model.md
@@ -65,11 +65,10 @@ different across versions of the same product.
         //
         function onDeviceReady() {
             var element = document.getElementById('deviceProperties');
-            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+            element.innerHTML = 'Device Model: '    + device.model    + '<br />' +
                                 'Device Cordova: '  + device.cordova  + '<br />' +
                                 'Device Platform: ' + device.platform + '<br />' +
                                 'Device UUID: '     + device.uuid     + '<br />' +
-                                'Device Model: '    + device.model    + '<br />' +
                                 'Device Version: '  + device.version  + '<br />';
         }
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/cordova/device/device.name.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/device/device.name.md b/docs/en/edge/cordova/device/device.name.md
index 0b475ea..60dcf06 100644
--- a/docs/en/edge/cordova/device/device.name.md
+++ b/docs/en/edge/cordova/device/device.name.md
@@ -68,10 +68,10 @@ versions of the same product.
         function onDeviceReady() {
             var element = document.getElementById('deviceProperties');
             element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+                                'Device Model: '    + device.model    + '<br />' +
                                 'Device Cordova: '  + device.cordova  + '<br />' +
                                 'Device Platform: ' + device.platform + '<br />' +
                                 'Device UUID: '     + device.uuid     + '<br />' +
-                                'Device Model: '    + device.model    + '<br />' +
                                 'Device Version: '  + device.version  + '<br />';
         }
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/cordova/device/device.platform.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/device/device.platform.md b/docs/en/edge/cordova/device/device.platform.md
index 7e1da43..1c5d0f5 100644
--- a/docs/en/edge/cordova/device/device.platform.md
+++ b/docs/en/edge/cordova/device/device.platform.md
@@ -60,7 +60,7 @@ Get the device's operating system name.
         //
         function onDeviceReady() {
             var element = document.getElementById('deviceProperties');
-            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+            element.innerHTML = 'Device Model: '    + device.model    + '<br />' +
                                 'Device Cordova: '  + device.cordova  + '<br />' +
                                 'Device Platform: ' + device.platform + '<br />' +
                                 'Device UUID: '     + device.uuid     + '<br />' +

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/cordova/device/device.uuid.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/device/device.uuid.md b/docs/en/edge/cordova/device/device.uuid.md
index c4e87bf..d62b8ae 100644
--- a/docs/en/edge/cordova/device/device.uuid.md
+++ b/docs/en/edge/cordova/device/device.uuid.md
@@ -72,7 +72,7 @@ The details of how a UUID is generated are determined by the device manufacturer
         //
         function onDeviceReady() {
             var element = document.getElementById('deviceProperties');
-            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+            element.innerHTML = 'Device Model: '    + device.model    + '<br />' +
                                 'Device Cordova: '  + device.cordova  + '<br />' +
                                 'Device Platform: ' + device.platform + '<br />' +
                                 'Device UUID: '     + device.uuid     + '<br />' +

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ee7ab7c8/docs/en/edge/cordova/device/device.version.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/device/device.version.md b/docs/en/edge/cordova/device/device.version.md
index bac629d..643924c 100644
--- a/docs/en/edge/cordova/device/device.version.md
+++ b/docs/en/edge/cordova/device/device.version.md
@@ -64,7 +64,7 @@ Get the operating system version.
         //
         function onDeviceReady() {
             var element = document.getElementById('deviceProperties');
-            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+            element.innerHTML = 'Device Model: '    + device.model    + '<br />' +
                                 'Device Cordova: '  + device.cordova  + '<br />' +
                                 'Device Platform: ' + device.platform + '<br />' +
                                 'Device UUID: '     + device.uuid     + '<br />' +


Mime
View raw message