diff --git a/s3fs/js/events.js b/s3fs/js/events.js index f156e06..d014670 100644 --- a/s3fs/js/events.js +++ b/s3fs/js/events.js @@ -14,7 +14,7 @@ var util = require('../../shared/util'); * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the metadata was * fetched successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to fetch the metadata. */ @@ -32,7 +32,7 @@ var onCloseFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the entry was copied * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to copy the entry. */ var onCopyEntryRequested = function(options, onSuccess, onError) { @@ -63,7 +63,7 @@ var onCopyEntryRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was created * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to create the file. */ var onCreateFileRequested = function(options, onSuccess, onError) { @@ -93,7 +93,7 @@ var onCreateFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the entry was deleted * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to delete the entry. */ var onDeleteEntryRequested = function(options, onSuccess, onError) { @@ -121,7 +121,7 @@ var onDeleteEntryRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the metadata was * fetched successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to fetch the metadata. */ var onGetMetadataRequested = function(options, onSuccess, onError) { @@ -182,7 +182,7 @@ var onGetMetadataRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was opened * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to open the file. */ var onOpenFileRequested = function(options, onSuccess, onError) { @@ -203,7 +203,7 @@ var onOpenFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the directory was * read successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to read the directory. */ var onReadDirectoryRequested = function(options, onSuccess, onError) { @@ -250,7 +250,7 @@ var onReadDirectoryRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was * read successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to read the file. */ var onReadFileRequested = function(options, onSuccess, onError) { @@ -285,7 +285,7 @@ var onReadFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was * read successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to read the file. */ var onTruncateRequested = function(options, onSuccess, onError) { @@ -336,7 +336,7 @@ var onTruncateRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was * read successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to read the file. */ var onWriteFileRequested = function(options, onSuccess, onError) { @@ -374,7 +374,7 @@ var onWriteFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the entry was copied * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to copy the entry. */ var onMoveEntryRequested = function(options, onSuccess, onError) { diff --git a/templatefs/js/events/onCloseFileRequested.js b/templatefs/js/events/onCloseFileRequested.js index 7e47c8f..5243f78 100644 --- a/templatefs/js/events/onCloseFileRequested.js +++ b/templatefs/js/events/onCloseFileRequested.js @@ -11,7 +11,7 @@ * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was opened * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to close the file. */ module.exports = function(options, onSuccess, onError) { diff --git a/templatefs/js/events/onGetMetadataRequested.js b/templatefs/js/events/onGetMetadataRequested.js index 6d49b20..170fafc 100644 --- a/templatefs/js/events/onGetMetadataRequested.js +++ b/templatefs/js/events/onGetMetadataRequested.js @@ -11,7 +11,7 @@ * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the metadata was * fetched successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to fetch the metadata. */ module.exports = function(options, onSuccess, onError) { diff --git a/templatefs/js/events/onOpenFileRequested.js b/templatefs/js/events/onOpenFileRequested.js index 798fa22..8b74b96 100644 --- a/templatefs/js/events/onOpenFileRequested.js +++ b/templatefs/js/events/onOpenFileRequested.js @@ -11,7 +11,7 @@ * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was opened * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to open the file. */ module.exports = function(options, onSuccess, onError) { diff --git a/templatefs/js/events/onReadDirectoryRequested.js b/templatefs/js/events/onReadDirectoryRequested.js index 3d607e2..68e6d9d 100644 --- a/templatefs/js/events/onReadDirectoryRequested.js +++ b/templatefs/js/events/onReadDirectoryRequested.js @@ -11,7 +11,7 @@ * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the directory was * read successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to read the directory. */ module.exports = function(options, onSuccess, onError) { diff --git a/templatefs/js/events/onReadFileRequested.js b/templatefs/js/events/onReadFileRequested.js index c20b017..dfa9aca 100644 --- a/templatefs/js/events/onReadFileRequested.js +++ b/templatefs/js/events/onReadFileRequested.js @@ -11,7 +11,7 @@ * @param {Object} options Input options. * @param {function} onSuccess Function to be called if the file was * read successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to read the file. */ module.exports = function(options, onSuccess, onError) { diff --git a/webdavfs/js/client.js b/webdavfs/js/client.js index b665920..20d94ca 100644 --- a/webdavfs/js/client.js +++ b/webdavfs/js/client.js @@ -241,7 +241,7 @@ WebDAVClient.prototype.request = function(verb, url, headers, data, responseType return body; }; - // Register the callback to to be called when the request sucessfully + // Register the callback to to be called when the request successfully // completes. xhr.onreadystatechange = function() { if(xhr.readyState !== 4) { return; } diff --git a/webdavfs/js/events.js b/webdavfs/js/events.js index e28972a..81f006b 100644 --- a/webdavfs/js/events.js +++ b/webdavfs/js/events.js @@ -13,7 +13,7 @@ var util = require('../../shared/util'); * @param {object} options Input options. * @param {function} onSuccess Function to be called if the file was closed * successfully. - * @param {function} onError Function to be called if an error occured while + * @param {function} onError Function to be called if an error occurred while * attempting to close the file. */ var onCloseFileRequested = function(options, onSuccess, onError) { @@ -36,7 +36,7 @@ var onCloseFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the metadata was * fetched successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to fetch the metadata. */ var onGetMetadataRequested = function(options, onSuccess, onError) { @@ -61,7 +61,7 @@ var onGetMetadataRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the file was opened * successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to open the file. */ var onOpenFileRequested = function(options, onSuccess, onError) { @@ -83,7 +83,7 @@ var onOpenFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the directory was * read successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to read the directory. */ var onReadDirectoryRequested = function(options, onSuccess, onError) { @@ -106,7 +106,7 @@ var onReadDirectoryRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the file was * read successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to read the file. */ var onReadFileRequested = function(options, onSuccess, onError) { @@ -140,7 +140,7 @@ var onReadFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the file was * written to successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to write to the file. */ var onWriteFileRequested = function(options, onSuccess, onError) { @@ -172,7 +172,7 @@ var onWriteFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the file was * truncated successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to truncate the file. */ @@ -215,7 +215,7 @@ var onTruncateRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the file was * created successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to create the file. */ var onCreateFileRequested = function(options, onSuccess, onError) { @@ -237,7 +237,7 @@ var onCreateFileRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the entry was * copied successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to copy the entry. */ var onCopyEntryRequested = function(options, onSuccess, onError) { @@ -254,7 +254,7 @@ var onCopyEntryRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the entry was * copied successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to copy the entry. */ var onMoveEntryRequested = function(options, onSuccess, onError) { @@ -271,7 +271,7 @@ var onMoveEntryRequested = function(options, onSuccess, onError) { * @param {Object} options Input options. * @param {Function} onSuccess Function to be called if the file was * deleted successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to delete the file. */ var onDeleteEntryRequested = function(options, onSuccess, onError) { @@ -329,7 +329,7 @@ var onDeleteEntryRequested = function(options, onSuccess, onError) { * @param {Object} inputOptions Input options. * @param {Function} onSuccess Function to be called if the file system was * unmounted successfully. - * @param {Function} onError Function to be called if an error occured while + * @param {Function} onError Function to be called if an error occurred while * attempting to umount the file system. */ var onUnmountRequested = function(inputOptions, onSuccess, onError) { diff --git a/webdavfs/js/main.js b/webdavfs/js/main.js index e4cfb52..fb4d813 100644 --- a/webdavfs/js/main.js +++ b/webdavfs/js/main.js @@ -17,7 +17,7 @@ var events = require('./events'); * @param {string} url The URL of the server to connect to. * @param {function=} callbacks.onSuccess Function to call if the server was * mounted successfully. - * @param {function=} callbacks.onError Function to call if an error occured + * @param {function=} callbacks.onError Function to call if an error occurred * while attempting to mount the server. */ var mount = function(url, callbacks) {