Fix spelling errors (#5)
diff --git a/README.md b/README.md
index f635817..8ae92ca 100644
--- a/README.md
+++ b/README.md
@@ -9,12 +9,12 @@
cordova-firefoxos allows developers to use the cross platform APIs in Cordova to target the Firefox OS. Most APIs are just proxied to the matching Firefox OS API calls.
-Prerequisties:
+Prerequisites:
==============
A lot of good documentation is available on the [Mozilla Developer Network](https://developer.mozilla.org/en/docs/Mozilla/Firefox_OS)
-A simulator (runs as a Firefox plugin) is availble [here](http://people.mozilla.org/~myk/r2d2b2g/)
+A simulator (runs as a Firefox plugin) is available [here](http://people.mozilla.org/~myk/r2d2b2g/)
The following software is required to package and deploy an app directly to a Firefox OS device:
-[Android SDK](http://developer.android.com/sdk/index.html)
diff --git a/framework/js/index.js b/framework/js/index.js
index 31d9064..87b5660 100644
--- a/framework/js/index.js
+++ b/framework/js/index.js
@@ -31,7 +31,7 @@
// deviceready Event Handler
//
// The scope of 'this' is the event. In order to call the 'receivedEvent'
- // function, we must explicity call 'app.receivedEvent(...);'
+ // function, we must explicitly call 'app.receivedEvent(...);'
onDeviceReady: function() {
app.receivedEvent('deviceready');
},
diff --git a/lib/cordova.firefoxos.js b/lib/cordova.firefoxos.js
index e28d36a..9fb3e4d 100644
--- a/lib/cordova.firefoxos.js
+++ b/lib/cordova.firefoxos.js
@@ -350,7 +350,7 @@
var c = spec.charAt(i),
cUpper = c.toUpperCase(),
arg = args[i];
- // Asterix means allow anything.
+ // Asterisk means allow anything.
if (c == '*') {
continue;
}
@@ -951,7 +951,7 @@
* Execute a cordova command. It is up to the native side whether this action
* is synchronous or asynchronous. The native side can return:
* Synchronous: PluginResult object as a JSON string
- * Asynchrounous: Empty string ""
+ * Asynchronous: Empty string ""
* If async, the native side will cordova.callbackSuccess or cordova.callbackError,
* depending upon the result of the action.
*
@@ -1173,7 +1173,7 @@
DestinationType:{
DATA_URL: 0, // Return base64 encoded string
FILE_URI: 1, // Return file uri (content://media/external/images/media/2 for Android)
- NATIVE_URI: 2 // Return native uri (eg. asset-library://... for iOS)
+ NATIVE_URI: 2 // Return native uri (e.g. asset-library://... for iOS)
},
EncodingType:{
JPEG: 0, // Return JPEG encoded image
@@ -4599,7 +4599,7 @@
* successCB callback with a properties object as a parameter. If there is an error
* formatting the date, then the errorCB callback is invoked.
*
-* The defaults are: formatLenght="short" and selector="date and time"
+* The defaults are: formatLength="short" and selector="date and time"
*
* @param {Date} date
* @param {Function} successCB
@@ -5152,7 +5152,7 @@
utils = require('cordova/utils');
// Link the onLine property with the Cordova-supplied network info.
-// This works because we clobber the naviagtor object with our own
+// This works because we clobber the navigator object with our own
// object in bootstrap.js.
if (typeof navigator != 'undefined') {
utils.defineGetter(navigator, 'onLine', function() {