Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
fix(spelling): various typos in tests, comments, docs, & code
Browse files Browse the repository at this point in the history
  • Loading branch information
pborreli authored and rnicholus committed May 20, 2016
1 parent 64714d6 commit 29badc7
Show file tree
Hide file tree
Showing 25 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion client/js/dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ qq.DragAndDrop = function(o) {
var newEntries = accumEntries ? accumEntries.concat(entries) : entries;

if (entries.length) {
setTimeout(function() { // prevent stack oveflow, however unlikely
setTimeout(function() { // prevent stack overflow, however unlikely
getFilesInDirectory(entry, dirReader, newEntries, promise);
}, 0);
}
Expand Down
12 changes: 6 additions & 6 deletions client/js/identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ qq.Identify = function(fileOrBlob, log) {
*/
isPreviewable: function() {
var self = this,
idenitifer = new qq.Promise(),
identifier = new qq.Promise(),
previewable = false,
name = fileOrBlob.name === undefined ? "blob" : fileOrBlob.name;

Expand All @@ -45,7 +45,7 @@ qq.Identify = function(fileOrBlob, log) {
// so, if this is a TIFF and the UA isn't Safari, declare this file "non-previewable".
if (mime !== "image/tiff" || qq.supportedFeatures.tiffPreviews) {
previewable = true;
idenitifer.success(mime);
identifier.success(mime);
}

return false;
Expand All @@ -55,19 +55,19 @@ qq.Identify = function(fileOrBlob, log) {
log(qq.format("'{}' is {} able to be rendered in this browser", name, previewable ? "" : "NOT"));

if (!previewable) {
idenitifer.failure();
identifier.failure();
}
},
function() {
log("Error reading file w/ name '" + name + "'. Not able to be rendered in this browser.");
idenitifer.failure();
identifier.failure();
});
}
else {
idenitifer.failure();
identifier.failure();
}

return idenitifer;
return identifier;
},

/**
Expand Down
4 changes: 2 additions & 2 deletions client/js/image-support/scaler.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ qq.Scaler = function(spec, log) {
var self = this,
records = [],
originalBlob = originalBlobOrBlobData.blob ? originalBlobOrBlobData.blob : originalBlobOrBlobData,
idenitifier = new qq.Identify(originalBlob, log);
identifier = new qq.Identify(originalBlob, log);

// If the reference file cannot be rendered natively, we can't create scaled versions.
if (idenitifier.isPreviewableSync()) {
if (identifier.isPreviewableSync()) {
// Create records for each scaled version & add them to the records array, smallest first.
qq.each(sizes, function(idx, sizeRecord) {
var outputType = self._determineOutputType({
Expand Down
2 changes: 1 addition & 1 deletion client/js/s3/s3.xhr.upload.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ qq.s3.XhrUploadHandler = function(spec, proxy) {
/**
* Used for simple (non-chunked) uploads to determine the parameters to send along with the request. Part of this
* process involves asking the local server to sign the request, so this function returns a promise. The promise
* is fulfilled when all parameters are determined, or when we determine that all parameters cannnot be calculated
* is fulfilled when all parameters are determined, or when we determine that all parameters cannot be calculated
* due to some error.
*
* @param id File ID
Expand Down
4 changes: 2 additions & 2 deletions client/js/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ qq.Session = function(spec) {
refreshCompleteCallback = function(response, success, xhrOrXdr) {
handleFileItems(response, success, xhrOrXdr, refreshEffort);
},
requsterOptions = qq.extend({}, options),
requesterOptions = qq.extend({}, options),
requester = new qq.SessionAjaxRequester(
qq.extend(requsterOptions, {onComplete: refreshCompleteCallback})
qq.extend(requesterOptions, {onComplete: refreshCompleteCallback})
);

requester.queryServer();
Expand Down
8 changes: 4 additions & 4 deletions client/js/templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ qq.Templating = function(spec) {
},

useCachedPreview = function(targetThumbnailId, cachedThumbnailId) {
var targetThumnail = getThumbnail(targetThumbnailId),
var targetThumbnail = getThumbnail(targetThumbnailId),
cachedThumbnail = getThumbnail(cachedThumbnailId);

log(qq.format("ID {} is the same file as ID {}. Will use generated thumbnail from ID {} instead.", targetThumbnailId, cachedThumbnailId, cachedThumbnailId));
Expand All @@ -600,13 +600,13 @@ qq.Templating = function(spec) {
generatedThumbnails++;
previewGeneration[targetThumbnailId].success();
log(qq.format("Now using previously generated thumbnail created for ID {} on ID {}.", cachedThumbnailId, targetThumbnailId));
targetThumnail.src = cachedThumbnail.src;
show(targetThumnail);
targetThumbnail.src = cachedThumbnail.src;
show(targetThumbnail);
},
function() {
previewGeneration[targetThumbnailId].failure();
if (!options.placeholders.waitUntilUpdate) {
maybeSetDisplayNotAvailableImg(targetThumbnailId, targetThumnail);
maybeSetDisplayNotAvailableImg(targetThumbnailId, targetThumbnail);
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion client/js/total-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ qq.TotalProgress = function(callback, getSize) {

/**
* Invokes the callback with the current total progress of all files in the batch. Called whenever it may
* be appropriate to re-calculate and dissemenate this data.
* be appropriate to re-calculate and disseminate this data.
*
* @param id ID of a file that has changed in some important way
* @param newLoaded New loaded value for this file. -1 if this value should no longer be part of calculations
Expand Down
2 changes: 1 addition & 1 deletion client/js/uploader.basic.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@
this._uploadData.setStatus(id, qq.status.DELETE_FAILED);
this.log("Delete request for '" + name + "' has failed.", "error");

// For error reporing, we only have accesss to the response status if this is not
// For error reporting, we only have access to the response status if this is not
// an `XDomainRequest`.
if (xhrOrXdr.withCredentials === undefined) {
this._options.callbacks.onError(id, name, "Delete request failed", xhrOrXdr);
Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<li role="presentation"><a role="menuitem" href="{{ URL_ROOT }}/api/events.html">Core & UI</a></li>
<li role="presentation"><a role="menuitem" href="{{ URL_ROOT }}/api/events-s3.html">S3</a></li>
<li class="divider"></li>
<li role="presentation"><a role="menuitem" style="margin-left: -20px;"href="{{ URL_ROOT }}/api/qq.html">Utilities</a></li>
<li role="presentation"><a role="menuitem" style="margin-left: -20px;" href="{{ URL_ROOT }}/api/qq.html">Utilities</a></li>
</ul>
</li>

Expand Down
2 changes: 1 addition & 1 deletion docs/api/methods-azure.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ reference. All methods outlined in the core or UI documentation are also availa
in Fine Uploader Azure, unless otherwise noted here.
{% endmarkdown %}

{{ api_method("getBlobName", "getBlobName (fileId)", "Retreive the blob name with the associated ID",
{{ api_method("getBlobName", "getBlobName (fileId)", "Retrieve the blob name with the associated ID",
[
{
"name": "fileId",
Expand Down
6 changes: 3 additions & 3 deletions docs/api/methods.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ A `CanvasWrapper` object:
{
"name": "id",
"type": "Integer",
"description": "The fild id."
"description": "The file id."
}
],
[
{
"type": "Boolean",
"description": "`true` if the attempt was succesful. `false` otherwise."
"description": "`true` if the attempt was successful. `false` otherwise."
}

]) }}
Expand Down Expand Up @@ -565,7 +565,7 @@ A `CanvasWrapper` object:
}
]) }}

{{ api_method("removeExtraDropzone", "removeExtraDropzone (element)", "Uesd to un-mark an `element` as a drop zone.",
{{ api_method("removeExtraDropzone", "removeExtraDropzone (element)", "Used to un-mark an `element` as a drop zone.",
[
{
"name": "element",
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qq.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ sure to wrap any elements before calling these methods on them.
{
"name": "event",
"type": "String",
"desciption": "The name of the default event to prevent."
"description": "The name of the default event to prevent."
}
]) }}

Expand Down
4 changes: 2 additions & 2 deletions docs/features/async-tasks-and-promises.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ can use any A+ certified promise implementation to communicate with Fine Uploade
no longer bound to `qq.Promise`. Instead, you can use [Q][q], or [RSVP][rsvp], for example, to return promises from any
promissory callback handlers.

For more informaton on promises in JavaScript, have a look at
For more information on promises in JavaScript, have a look at
[Promises -- an alternative way to approach asynchronous JavaScript](http://12devs.co.uk/articles/promises-an-alternative-way-to-approach-asynchronous-javascript/).

## Promissory Callbacks
Expand Down Expand Up @@ -48,7 +48,7 @@ does not block the UI thread (such as a Bootstrap modal, or a Bootbox.js dialog
## qq.Promise API

{{ alert(
"""Fine Uploader's internal `qq.Promise` object is _not_ compilant with the A+ specification. If this is a problem for you,
"""Fine Uploader's internal `qq.Promise` object is _not_ compliant with the A+ specification. If this is a problem for you,
feel free to use any compliant promise library of your choice instead.""", "info", "Note:") }}

{% endmarkdown %}
Expand Down
2 changes: 1 addition & 1 deletion docs/features/handling-errors.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ upload errors are displayed.
* `'default'` will display the `failUploadText` defined in the `text` option
properties next to each item.
* `'none'` will **not** display any text next to a failed item.
* `'custom'` will display an error reponse text from the server next to each
* `'custom'` will display an error response text from the server next to each
failed item).
* `'custom'` mode will use the provided `responseProperty` (which defaults
to `'error'`) as its text
Expand Down
2 changes: 1 addition & 1 deletion docs/features/request-parameters.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The `params` option is used to define request parameters when you instantiate a
new Fine Uploader instance. Parameters defined this way are set on the request
at the very last minute before it is sent to the server. Parameters can also
be set for delete file requests. Simply modify the `params` property of the
`deletFile` option. Either of these properties are capable of handling a
`deleteFile` option. Either of these properties are capable of handling a
variety of JavaScript objects.

#### Simple Objects
Expand Down
4 changes: 2 additions & 2 deletions test/static/third-party/jquery/jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -3815,7 +3815,7 @@ jQuery.fn.extend({
i = 0,
elem = this[0];

// Special expections of .data basically thwart jQuery.access,
// Special exceptions of .data basically thwart jQuery.access,
// so implement the relevant behavior ourselves

// Gets all values
Expand Down Expand Up @@ -4649,7 +4649,7 @@ if ( !jQuery.support.style ) {
get: function( elem ) {
// Return undefined in the case of empty string
// Note: IE uppercases css property names, but if we were to .toLowerCase()
// .cssText, that would destroy case senstitivity in URL's, like in "background"
// .cssText, that would destroy case sensitivity in URL's, like in "background"
return elem.style.cssText || undefined;
},
set: function( elem, value ) {
Expand Down
2 changes: 1 addition & 1 deletion test/static/third-party/json2/cycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (typeof JSON.decycle !== 'function') {
// duplicate references (which might be forming cycles) are replaced with
// an object of the form
// {$ref: PATH}
// where the PATH is a JSONPath string that locates the first occurance.
// where the PATH is a JSONPath string that locates the first occurrence.
// So,
// var a = [];
// a[0] = a;
Expand Down
4 changes: 2 additions & 2 deletions test/static/third-party/purl/purl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Purl (A JavaScript URL parser) v2.3.1
* Developed and maintanined by Mark Perkins, [email protected]
* Developed and maintained by Mark Perkins, [email protected]
* Source repository: https://github.com/allmarkedup/jQuery-URL-Parser
* Licensed under an MIT-style license. See https://github.com/allmarkedup/jQuery-URL-Parser/blob/master/LICENSE for details.
*/
Expand Down Expand Up @@ -48,7 +48,7 @@
uri.param['query'] = parseString(uri.attr['query']);
uri.param['fragment'] = parseString(uri.attr['fragment']);

// split path and fragement into segments
// split path and fragment into segments
uri.seg['path'] = uri.attr.path.replace(/^\/+|\/+$/g,'').split('/');
uri.seg['fragment'] = uri.attr.fragment.replace(/^\/+|\/+$/g,'').split('/');

Expand Down
4 changes: 2 additions & 2 deletions test/static/third-party/q/q-1.0.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Promise.prototype.race = function () {
* accepts the operation name, a resolver, and any further arguments that would
* have been forwarded to the appropriate method above had a method been
* provided with the proper name. The API makes no guarantees about the nature
* of the returned object, apart from that it is usable whereever promises are
* of the returned object, apart from that it is usable wherever promises are
* bought and sold.
*/
Q.makePromise = Promise;
Expand Down Expand Up @@ -1563,7 +1563,7 @@ Promise.prototype.allSettled = function () {
};

/**
* Captures the failure of a promise, giving an oportunity to recover
* Captures the failure of a promise, giving an opportunity to recover
* with a callback. If the given promise is fulfilled, the returned
* promise is fulfilled.
* @param {Any*} promise for something
Expand Down
2 changes: 1 addition & 1 deletion test/static/third-party/sinon/sinon.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var sinon = (function (buster) {
target[prop] = arguments[i][prop];
}

// DONT ENUM bug, only care about toString
// DON'T ENUM bug, only care about toString
if (arguments[i].hasOwnProperty("toString") &&
arguments[i].toString != target.toString) {
target.toString = arguments[i].toString;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/azure/chunked-uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ describe("azure chunked upload tests", function() {
onUploadChunkSuccess: function(id, chunkData, response, xhr) {
//should be called twice each (1 for each chunk)
assert.equal(id, 0, "Wrong ID passed to onUploadChunkSuccess");
assert.ok(response, "Null response paassed to onUploadChunkSuccess");
assert.ok(xhr, "Null XHR paassed to onUploadChunkSuccess");
assert.ok(response, "Null response passed to onUploadChunkSuccess");
assert.ok(xhr, "Null XHR passed to onUploadChunkSuccess");

verifyChunkData(true, chunkData);
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/chunked-uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if (qqtest.canDownloadFileAsBlob) {
onUploadChunk: function (id, name, chunkData) {
chunksSent++;

assert.equal(id, 0, "Wrong ID passed to onUpoadChunk");
assert.equal(id, 0, "Wrong ID passed to onUploadChunk");
assert.equal(name, uploader.getName(id), "Wrong name passed to onUploadChunk");
assert.equal(chunkData.partIndex, chunksSent - 1, "Wrong partIndex passed to onUploadChunk");
assert.equal(chunkData.startByte, (chunksSent - 1) * chunkSize + 1, "Wrong startByte passed to onUploadChunk");
Expand Down
8 changes: 4 additions & 4 deletions test/unit/s3/chunked-uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ if (qqtest.canDownloadFileAsBlob) {
onUploadChunkSuccess: function(id, chunkData, response, xhr) {
//should be called twice each (1 for each chunk)
assert.equal(id, 0, "Wrong ID passed to onUploadChunkSuccess");
assert.ok(response, "Null response paassed to onUploadChunkSuccess");
assert.ok(xhr, "Null XHR paassed to onUploadChunkSuccess");
assert.ok(response, "Null response passed to onUploadChunkSuccess");
assert.ok(xhr, "Null XHR passed to onUploadChunkSuccess");

verifyChunkData(true, chunkData);
}
Expand Down Expand Up @@ -281,8 +281,8 @@ if (qqtest.canDownloadFileAsBlob) {
onUploadChunkSuccess: function(id, chunkData, response, xhr) {
//should be called twice each (1 for each chunk)
assert.equal(id, 0, "Wrong ID passed to onUploadChunkSuccess");
assert.ok(response, "Null response paassed to onUploadChunkSuccess");
assert.ok(xhr, "Null XHR paassed to onUploadChunkSuccess");
assert.ok(response, "Null response passed to onUploadChunkSuccess");
assert.ok(xhr, "Null XHR passed to onUploadChunkSuccess");

verifyChunkData(true, chunkData);
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ describe("templating.js", function() {
describe("file elements are two levels below the file container", function() {
var fileContainer, deleteButtonEl, cancelButtonEl, retryButtonEl;

it("is able to find the file ID given a button elememnt", function() {
it("is able to find the file ID given a button element", function() {
renderTemplate(simpleTwoLevelFilesTemplate);
templating.addFile(0, "foobar");
fileContainer = templating.getFileContainer(0);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/uploader.basic.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe("uploader.basic.api.js", function () {

});

it("allows changing paramters for all files", function () {
it("allows changing parameters for all files", function () {
var params = {"hello": "world"};
fineuploader.setParams(params);
assert.deepEqual(fineuploader._paramsStore.get(), params,
Expand Down

0 comments on commit 29badc7

Please sign in to comment.