You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/11/27 23:43:02 UTC

docs commit: [CB-1839] iOS - Update Device docs for corrected device.name implementation

Updated Branches:
  refs/heads/master 6adbf755e -> 845591790


[CB-1839] iOS - Update Device docs for corrected device.name implementation


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

Branch: refs/heads/master
Commit: 845591790d23db90d44b3d5828cdd006057d6af6
Parents: 6adbf75
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Nov 27 14:42:58 2012 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Nov 27 14:42:58 2012 -0800

----------------------------------------------------------------------
 docs/en/edge/cordova/device/device.name.md |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/84559179/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 e98f732..201f924 100644
--- a/docs/en/edge/cordova/device/device.name.md
+++ b/docs/en/edge/cordova/device/device.name.md
@@ -34,7 +34,7 @@ Supported Platforms
 
 - Android
 - BlackBerry WebWorks (OS 5.0 and higher)
-- iPhone
+- iOS
 - Windows Phone 7
 - Bada 1.2 & 2.x
 - webOS
@@ -47,7 +47,7 @@ Quick Example
     // Android:    Nexus One       returns "Passion" (Nexus One code name)
     //             Motorola Droid  returns "voles"
     // BlackBerry: Torch 9800      returns "9800"
-    // iPhone:     All devices     returns a name set by iTunes e.g. "Joe's iPhone"
+    // iOS:     All devices     returns either "iPhone", "iPod Touch", "iPhone Simulator", "iPad", "iPad Simulator"
     //
     var name = device.name;
 
@@ -59,7 +59,7 @@ Full Example
       <head>
         <title>Device Properties Example</title>
 
-        <script type="text/javascript" charset="utf-8" src="cordova-2.2.0.js"></script>
+        <script type="text/javascript" charset="utf-8" src="cordova-2.3.0.js"></script>
         <script type="text/javascript" charset="utf-8">
 
         // Wait for Cordova to load
@@ -93,13 +93,6 @@ Android Quirks
     - The product name is often the code name given during production.
     - e.g. Nexus One returns "Passion", Motorola Droid returns "voles"
 
-iPhone Quirks
--------------
-
-- Gets the [device's custom name](http://developer.apple.com/iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW13) instead of the [device model name](http://developer.apple.com/iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW1).
-    - The custom name is set by the owner in iTunes.
-    - e.g. "Joe's iPhone"
-
 Windows Phone 7 Quirks
 -------------