Skip to content

Commit

Permalink
Purge references to BlackBerry OS 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Walters authored and hermwong committed Apr 5, 2012
1 parent ba5c717 commit b5e54f4
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 53 deletions.
3 changes: 1 addition & 2 deletions docs/en/edge/phonegap/device/device.cordova.md
Expand Up @@ -14,7 +14,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down Expand Up @@ -57,4 +56,4 @@ Full Example
<p id="deviceProperties">Loading device properties...</p>
</body>
</html>

5 changes: 2 additions & 3 deletions docs/en/edge/phonegap/device/device.name.md
Expand Up @@ -14,7 +14,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand All @@ -24,7 +23,7 @@ Quick Example

// Android: Nexus One returns "Passion" (Nexus One code name)
// Motorola Droid returns "voles"
// BlackBerry: Bold 8900 returns "8900"
// BlackBerry: Torch 9800 returns "9800"
// iPhone: All devices returns a name set by iTunes e.g. "Joe's iPhone"
//
var name = device.name;
Expand Down Expand Up @@ -76,4 +75,4 @@ 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"
- e.g. "Joe's iPhone"
3 changes: 1 addition & 2 deletions docs/en/edge/phonegap/device/device.platform.md
Expand Up @@ -9,7 +9,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down Expand Up @@ -67,4 +66,4 @@ All devices return `iPhone` as the platform. This is inaccurate because Apple ha
BlackBerry Quirks
-----------------

Devices may return the device platform version instead of the platform name. For example, the Storm2 9550 would return '2.13.0.95' or similar.
Devices may return the device platform version instead of the platform name. For example, the Storm2 9550 would return '2.13.0.95' or similar.
3 changes: 1 addition & 2 deletions docs/en/edge/phonegap/device/device.uuid.md
Expand Up @@ -14,7 +14,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down Expand Up @@ -69,4 +68,4 @@ Full Example
<body>
<p id="deviceProperties">Loading device properties...</p>
</body>
</html>
</html>
3 changes: 1 addition & 2 deletions docs/en/edge/phonegap/device/device.version.md
Expand Up @@ -9,7 +9,6 @@ Supported Platforms
-------------------

- Android 2.1+
- BlackBerry
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand All @@ -21,7 +20,7 @@ Quick Example
// Eclair OS would return "2.1", "2.0.1", or "2.0"
// Version can also return update level "2.1-update1"
//
// BlackBerry: Bold 9000 using OS 4.6 would return "4.6.0.282"
// BlackBerry: Torch 9800 using OS 6.0 would return "6.0.0.600"
//
// iPhone: iOS 3.2 returns "3.2"
//
Expand Down
26 changes: 0 additions & 26 deletions docs/en/edge/phonegap/events/events.deviceready.md
Expand Up @@ -64,29 +64,3 @@ Full Example
<body onload="onLoad()">
</body>
</html>

BlackBerry (OS 4.6) Quirks
--------------------------

Custom events are not supported in the RIM BrowserField (web browser view), so the `deviceready` event will never fire.

A workaround is to manually query `cordova.available` until Cordova has fully loaded.

function onLoad() {
// BlackBerry OS 4 browser does not support events.
// So, manually wait until Cordova is available.
//
var intervalID = window.setInterval(
function() {
if (cordova.available) {
window.clearInterval(intervalID);
onDeviceReady();
}
},
500
);
}

function onDeviceReady() {
// Now safe to use the Cordova API
}
Expand Up @@ -23,7 +23,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down
3 changes: 1 addition & 2 deletions docs/en/edge/phonegap/geolocation/Position/position.md
Expand Up @@ -18,7 +18,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down Expand Up @@ -108,4 +107,4 @@ A workaround is to manually convert the timestamp to milliseconds (x 1000):
alert('Latitude: ' + position.coords.latitude + '\n' +
'Longitude: ' + position.coords.longitude + '\n' +
'Timestamp: ' + new Date(position.timestamp * 1000) + '\n');
};
};
3 changes: 1 addition & 2 deletions docs/en/edge/phonegap/geolocation/geolocation.clearWatch.md
Expand Up @@ -19,7 +19,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down Expand Up @@ -92,4 +91,4 @@ Full Example
<p id="geolocation">Watching geolocation...</p>
<button onclick="clearWatch();">Clear Watch</button>
</body>
</html>
</html>
Expand Up @@ -24,7 +24,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down
Expand Up @@ -28,7 +28,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down
7 changes: 1 addition & 6 deletions docs/en/edge/phonegap/notification/notification.alert.md
Expand Up @@ -19,7 +19,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand All @@ -39,10 +38,6 @@ Quick Example
'Game Over', // title
'Done' // buttonName
);

// BlackBerry (OS 4.6) / webOS
//
navigator.notification.alert('You are the winner!');
Full Example
------------
Expand Down Expand Up @@ -91,4 +86,4 @@ Full Example
Windows Phone 7 Quirks
-------------

- Ignores button names, always uses 'OK'
- Ignores button names, always uses 'OK'
1 change: 0 additions & 1 deletion docs/en/edge/phonegap/notification/notification.beep.md
Expand Up @@ -11,7 +11,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7 ( Mango )
Expand Down
3 changes: 1 addition & 2 deletions docs/en/edge/phonegap/notification/notification.vibrate.md
Expand Up @@ -11,7 +11,6 @@ Supported Platforms
-------------------

- Android
- BlackBerry (OS 4.6)
- BlackBerry WebWorks (OS 5.0 and higher)
- iPhone
- Windows Phone 7
Expand Down Expand Up @@ -81,4 +80,4 @@ iPhone Quirks
- __time:__ Ignores the time and vibrates for a pre-set amount of time.

navigator.notification.vibrate();
navigator.notification.vibrate(2500); // 2500 is ignored
navigator.notification.vibrate(2500); // 2500 is ignored

0 comments on commit b5e54f4

Please sign in to comment.