Skip to content

Commit

Permalink
Various spelling fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored and agrieve committed Sep 27, 2012
1 parent 0e58060 commit 620cb28
Show file tree
Hide file tree
Showing 30 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion lib/android/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/android/plugin/android/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
* DEPRECATED
* This is only for Android.
*
* This resets the back button to the default behaviour
* This resets the back button to the default behavior
*/
resetBackButton:function() {
console.log("Device.resetBackButton() is deprecated. Use App.overrideBackbutton(false).");
Expand Down
4 changes: 2 additions & 2 deletions lib/bada/plugin/bada/Accelerometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ var Acceleration = require('cordova/plugin/Acceleration');
module.exports = {
getCurrentAcceleration: function(successCallback, errorCallback, options) {
var success = function(acceleration) {
console.log("Accelermometer:getAcceleration:success");
console.log("Accelerometer:getAcceleration:success");
var accel = new Acceleration(acceleration.xAxis, acceleration.yAxis, acceleration.zAxis);
successCallback(accel);
};
var error = function(err) {
console.log("Accelermometer:getAcceleration:error");
console.log("Accelerometer:getAcceleration:error");
if (err.code == err.TYPE_MISMATCH_ERR) {
console.log("TYPE MISMATCH ERROR");
}
Expand Down
4 changes: 2 additions & 2 deletions lib/bada/plugin/bada/Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
success(resultList[1]);
}
} else {
var error = {message: "An error occured while capturing image", code: 0};
var error = {message: "An error occurred while capturing image", code: 0};
fail(error);
}
});
Expand All @@ -50,7 +50,7 @@ module.exports = {
previewObject.style.visibility = "visible";
};
var error = function(e) {
alert("An error occured: " + e.message);
alert("An error occurred: " + e.message);
};

var success = function(cams) {
Expand Down
4 changes: 2 additions & 2 deletions lib/bada/plugin/bada/Capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = {
}
success(pluginResult);
} else {
var error = {message: "An error occured while capturing image", code: 0};
var error = {message: "An error occurred while capturing image", code: 0};
fail(error);
}
});
Expand All @@ -81,7 +81,7 @@ module.exports = {
}
success(mediaFiles);
} else {
var error = {message: "An error occured while capturing image", code: 0};
var error = {message: "An error occurred while capturing image", code: 0};
fail(error);
}
});
Expand Down
2 changes: 1 addition & 1 deletion lib/common/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function recursiveMerge(target, src) {
module.exports = {
build: function (objects) {
return {
intoButDontClobber: function (target) {
intoButDoNotClobber: function (target) {
include(target, objects, false, false);
},
intoAndClobber: function(target) {
Expand Down
2 changes: 1 addition & 1 deletion lib/common/plugin/CompassError.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/**
* CompassError.
* An error code assigned by an implementation when an error has occured
* An error code assigned by an implementation when an error has occurred
* @constructor
*/
var CompassError = function(err) {
Expand Down
2 changes: 1 addition & 1 deletion lib/common/plugin/ContactError.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/**
* ContactError.
* An error code assigned by an implementation when an error has occured
* An error code assigned by an implementation when an error has occurred
* @constructor
*/
var ContactError = function(err) {
Expand Down
4 changes: 2 additions & 2 deletions lib/common/plugin/DirectoryEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ DirectoryEntry.prototype.createReader = function() {
* Creates or looks up a directory
*
* @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a directory
* @param {Flags} options to create or excluively create the directory
* @param {Flags} options to create or exclusively create the directory
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
Expand Down Expand Up @@ -83,7 +83,7 @@ DirectoryEntry.prototype.removeRecursively = function(successCallback, errorCall
* Creates or looks up a file
*
* @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a file
* @param {Flags} options to create or excluively create the file
* @param {Flags} options to create or exclusively create the file
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/common/plugin/FileReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var FileReader = function() {

// Event handlers
this.onloadstart = null; // When the read starts.
this.onprogress = null; // While reading (and decoding) file or fileBlob data, and reporting partial file data (progess.loaded/progress.total)
this.onprogress = null; // While reading (and decoding) file or fileBlob data, and reporting partial file data (progress.loaded/progress.total)
this.onload = null; // When the read has successfully completed.
this.onerror = null; // When the read has failed (see errors).
this.onloadend = null; // When the request has completed (either in success or failure).
Expand Down
4 changes: 2 additions & 2 deletions lib/common/plugin/accelerometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function removeListeners(l) {

var accelerometer = {
/**
* Asynchronously aquires the current acceleration.
* Asynchronously acquires the current acceleration.
*
* @param {Function} successCallback The function to call when the acceleration data is available
* @param {Function} errorCallback The function to call when there is an error getting the acceleration data. (OPTIONAL)
Expand Down Expand Up @@ -111,7 +111,7 @@ var accelerometer = {
},

/**
* Asynchronously aquires the acceleration repeatedly at a given interval.
* Asynchronously acquires the acceleration repeatedly at a given interval.
*
* @param {Function} successCallback The function to call each time the acceleration data is available
* @param {Function} errorCallback The function to call when there is an error getting the acceleration data. (OPTIONAL)
Expand Down
4 changes: 2 additions & 2 deletions lib/common/plugin/console-via-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ console.table = function(data, columns) {
//------------------------------------------------------------------------------
// return a new function that calls both functions passed as args
//------------------------------------------------------------------------------
function wrapperedOrigCall(orgFunc, newFunc) {
function wrappedOrigCall(orgFunc, newFunc) {
return function() {
var args = [].slice.call(arguments);
try { orgFunc.apply(WinConsole, args); } catch (e) {}
Expand All @@ -182,6 +182,6 @@ function wrapperedOrigCall(orgFunc, newFunc) {
//------------------------------------------------------------------------------
for (var key in console) {
if (typeof WinConsole[key] == "function") {
console[key] = wrapperedOrigCall(WinConsole[key], console[key]);
console[key] = wrappedOrigCall(WinConsole[key], console[key]);
}
}
2 changes: 1 addition & 1 deletion lib/common/plugin/echo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
var exec = require('cordova/exec');

/**
* Sends the given message through exec() to the Echo plugink, which sends it back to the successCallback.
* Sends the given message through exec() to the Echo plugin, which sends it back to the successCallback.
* @param successCallback invoked with a FileSystem object
* @param errorCallback invoked if error occurs retrieving file system
* @param message The string to be echoed.
Expand Down
2 changes: 1 addition & 1 deletion lib/common/plugin/geolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function createTimeout(errorCallback, timeout) {
var geolocation = {
lastPosition:null, // reference to last known (cached) position returned
/**
* Asynchronously aquires the current position.
* Asynchronously acquires the current position.
*
* @param {Function} successCallback The function to call when the position data is available
* @param {Function} errorCallback The function to call when there is an error getting the heading position. (OPTIONAL)
Expand Down
2 changes: 1 addition & 1 deletion lib/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ utils.clone = function(obj) {
};

/**
* Returns a wrappered version of the function
* Returns a wrapped version of the function
*/
utils.close = function(context, func, params) {
if (typeof params == 'undefined') {
Expand Down
6 changes: 3 additions & 3 deletions lib/cordova.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ window.addEventListener = function(evt, handler, capture) {

document.removeEventListener = function(evt, handler, capture) {
var e = evt.toLowerCase();
// If unsubcribing from an event that is handled by a plugin
// If unsubscribing from an event that is handled by a plugin
if (typeof documentEventHandlers[e] != "undefined") {
documentEventHandlers[e].unsubscribe(handler);
} else {
Expand All @@ -77,7 +77,7 @@ document.removeEventListener = function(evt, handler, capture) {

window.removeEventListener = function(evt, handler, capture) {
var e = evt.toLowerCase();
// If unsubcribing from an event that is handled by a plugin
// If unsubscribing from an event that is handled by a plugin
if (typeof windowEventHandlers[e] != "undefined") {
windowEventHandlers[e].unsubscribe(handler);
} else {
Expand Down Expand Up @@ -126,7 +126,7 @@ var cordova = {
delete documentEventHandlers[event];
},
/**
* Retreive original event handlers that were replaced by Cordova
* Retrieve original event handlers that were replaced by Cordova
*
* @return object
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/errgen/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/scripts/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
platform = require('cordova/platform');

// Drop the common globals into the window object, but be nice and don't overwrite anything.
builder.build(base.objects).intoButDontClobber(window);
builder.build(base.objects).intoButDoNotClobber(window);

// Drop the platform-specific globals into the window object
// and clobber any existing object.
Expand Down
2 changes: 1 addition & 1 deletion lib/tizen/plugin/tizen/BufferLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/*
* Buffer Loader Object
* This class provides a sound buffer for one or more sounds
* holded in a local file located by an url
* held in a local file located by an url
*
* uses W3C Web Audio API
*
Expand Down
2 changes: 1 addition & 1 deletion lib/tizen/plugin/tizen/ContactUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ module.exports = {
}
}

// fullfil tizen find attribute as a single or a composite attribute
// fulfill Tizen find attribute as a single or a composite attribute
if (attributesArray.length == 1 ) {
filterExpression = attributeFilter[0];
} else if (attributesArray.length > 1) {
Expand Down
2 changes: 1 addition & 1 deletion lib/tizen/plugin/tizen/SoundBeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* NOTE: the W3C Web Audio doc tells we do not need to recreate the audio
* context to play a sound but only the audiosourcenode (createBufferSource)
* in the webkit implementation we have to.
* in the WebKit implementation we have to.
*
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/webworks/air/plugin/air/FileReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var FileReader = function() {

// Event handlers
this.onloadstart = null; // When the read starts.
this.onprogress = null; // While reading (and decoding) file or fileBlob data, and reporting partial file data (progess.loaded/progress.total)
this.onprogress = null; // While reading (and decoding) file or fileBlob data, and reporting partial file data (progress.loaded/progress.total)
this.onload = null; // When the read has successfully completed.
this.onerror = null; // When the read has failed (see errors).
this.onloadend = null; // When the request has completed (either in success or failure).
Expand Down
2 changes: 1 addition & 1 deletion lib/webworks/air/plugin/air/capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = {

if (args[0].limit > 0 && args[0].duration){
// a sloppy way of creating a uuid since there's no built in date function to get milliseconds since epoch
// might be better to instead check files within directory and then figure out the next file name shoud be
// might be better to instead check files within directory and then figure out the next file name should be
// ie, img000 -> img001 though that would take awhile and would add a whole bunch of checks
var id = new Date();
id = (id.getDay()).toString() + (id.getHours()).toString() + (id.getSeconds()).toString() + (id.getMilliseconds()).toString() + (id.getYear()).toString();
Expand Down
2 changes: 1 addition & 1 deletion lib/webworks/java/plugin/java/ContactUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ for ( var key in fieldMappings) {
* @param {String}
* type the type of address (e.g. work, home)
* @param {blackberry.pim.Address}
* bbAddress a BlakcBerry Address object
* bbAddress a BlackBerry Address object
* @return {ContactAddress} a contact address object or null if the specified
* address is null
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/webworks/java/plugin/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function _exec(win, fail, clazz, action, args) {
if (origResult.length > 0) {
evalResult = JSON.parse(origResult);

// If status is OK, then return evalResultalue back to caller
// If status is OK, then return evalResult value back to caller
if (evalResult.status === cordova.callbackStatus.OK) {

// If there is a success callback, then call it now with returned evalResultalue
// If there is a success callback, then call it now with returned evalResult value
if (win) {
// Clear callback if not expecting any more results
if (!evalResult.keepCallback) {
Expand All @@ -56,7 +56,7 @@ function _exec(win, fail, clazz, action, args) {
delete cordova.callbacks[callbackId];
}
} else {
// If there is a fail callback, then call it now with returned evalResultalue
// If there is a fail callback, then call it now with returned evalResult value
if (fail) {

// Clear callback if not expecting any more results
Expand Down
10 changes: 5 additions & 5 deletions lib/windows8/plugin/windows8/CaptureProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ module.exports = {
errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT));
return;
}
var mediaCaputreSettings;
var mediaCaptureSettings;
var initCaptureSettings = function () {
mediaCaputreSettings = null;
mediaCaputreSettings = new Windows.Media.Capture.MediaCaptureInitializationSettings();
mediaCaputreSettings.streamingCaptureMode = Windows.Media.Capture.StreamingCaptureMode.audio;
mediaCaptureSettings = null;
mediaCaptureSettings = new Windows.Media.Capture.MediaCaptureInitializationSettings();
mediaCaptureSettings.streamingCaptureMode = Windows.Media.Capture.StreamingCaptureMode.audio;
}
initCaptureSettings();
var mediaCapture = new Windows.Media.Capture.MediaCapture();
mediaCapture.initializeAsync(mediaCaputreSettings).done(function () {
mediaCapture.initializeAsync(mediaCaptureSettings).done(function () {
Windows.Storage.KnownFolders.musicLibrary.createFileAsync("captureAudio.mp3", Windows.Storage.NameCollisionOption.generateUniqueName).then(function (storageFile) {
var mediaEncodingProfile = new Windows.Media.MediaProperties.MediaEncodingProfile.createMp3(Windows.Media.MediaProperties.AudioEncodingQuality.auto);
var stopRecord = function () {
Expand Down
4 changes: 2 additions & 2 deletions lib/windows8/plugin/windows8/MediaProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/*global Windows:true */

var cordova = require('cordova'),
Media = require('cordova/plugn/Media');
Media = require('cordova/plugin/Media');

module.exports = {
mediaCaptureMrg:null,
Expand Down Expand Up @@ -77,7 +77,7 @@ module.exports = {
};
},

// Seeks to the postion in the audio
// Seeks to the position in the audio
seekToAudio:function(win, lose, args) {
var id = args[0];
var milliseconds = args[1];
Expand Down
4 changes: 2 additions & 2 deletions test/test.builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("builder", function () {
var target = {},
objects = {cat: {}};

builder.build(objects).intoButDontClobber(target);
builder.build(objects).intoButDoNotClobber(target);

expect(target.cat).toBeDefined();
});
Expand All @@ -62,7 +62,7 @@ describe("builder", function () {
}
};

builder.build(objects).intoButDontClobber(target);
builder.build(objects).intoButDoNotClobber(target);

expect(target.homer.bart).toBeDefined();
expect(target.homer.maggie).toBe(require('cordova/plugin/compass'));
Expand Down
2 changes: 1 addition & 1 deletion test/test.channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe("channel", function () {

expect(multiChannel.numHandlers).toEqual(0);
});
it("should not decrement handlers length more than once if unsubing a single handler", function() {
it("should not decrement handlers length more than once if unsubscribing a single handler", function() {
var firstHandler = function(){};
multiChannel.subscribe(firstHandler);

Expand Down
2 changes: 1 addition & 1 deletion test/test.contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("contacts", function () {
expect(exec).not.toHaveBeenCalled();
});

it("calls the error callback when no fields provied", function () {
it("calls the error callback when no fields provided", function () {
var success = jasmine.createSpy(),
error = jasmine.createSpy();

Expand Down

0 comments on commit 620cb28

Please sign in to comment.