diff --git a/common/components/protocols.js b/common/components/protocols.js index 03d75422..6e590716 100644 --- a/common/components/protocols.js +++ b/common/components/protocols.js @@ -178,7 +178,7 @@ AboutHandler.prototype = { getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT, }; -// A hack to get infermation about interfaces. +// A hack to get information about interfaces. // Doesn't belong here. function Shim() {} Shim.prototype = { diff --git a/common/content/abbreviations.js b/common/content/abbreviations.js index 5a9e2935..10d29e55 100644 --- a/common/content/abbreviations.js +++ b/common/content/abbreviations.js @@ -1,6 +1,6 @@ // Copyright (c) 2006-2009 by Martin Stubenschrott // Copyright (c) 2010 by anekos -// Copyright (c) 2010 by Kris Maglion +// Copyright (c) 2010 by Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. diff --git a/common/content/buffer.js b/common/content/buffer.js index 530652fb..0f8fb74a 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -184,7 +184,7 @@ const Buffer = Module("buffer", { let doc = event.originalTarget; // document is part of a frameset if (doc.defaultView.frameElement) { - // hacky way to get rid of "Transfering data from ..." on sites with frames + // hacky way to get rid of "Transferring data from ..." on sites with frames // when you click on a link inside a frameset, because asyncUpdateUI // is not triggered there (Gecko bug?) this.timeout(function () { statusline.updateUrl(); }, 10); @@ -814,7 +814,7 @@ const Buffer = Module("buffer", { // find the currently focused frame index // TODO: If the window is a frameset then the first _frame_ should be // focused. Since this is not the current FF behaviour, - // we initalize current to -1 so the first call takes us to the + // we initialize current to -1 so the first call takes us to the // first frame. let current = frames.indexOf(document.commandDispatcher.focusedWindow); diff --git a/common/content/commands.js b/common/content/commands.js index 4e00a462..6262fd7f 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -237,7 +237,7 @@ const Command = Class("Command", { count: false, /** * @property {function(args)} A function which should return a list - * of domains referenced in the given args. Used in determing + * of domains referenced in the given args. Used in determining * whether to purge the command from history when clearing * private data. */ diff --git a/common/content/completion.js b/common/content/completion.js index d8f6d1d3..505a400d 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -666,7 +666,7 @@ const CompletionContext = Class("CompletionContext", { * @param {boolean} interruptible When true, the call may be interrupted * via , in which case, "Interrupted" may be thrown. * @param {number} timeout The maximum time, in milliseconds, to wait. - * If 0 or null, wait indefinately. + * If 0 or null, wait indefinitely. */ wait: function wait(interruptable, timeout) { let end = Date.now() + timeout; diff --git a/common/content/dactyl.js b/common/content/dactyl.js index f7e98a7b..a9c9d186 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -576,7 +576,7 @@ const Dactyl = Module("dactyl", { function addURIEntry(file, uri) zip.addEntryChannel(PATH + file, TIME, 9, services.get("io").newChannel(uri, null, null), false); - function addDataEntry(file, data) // Inideal to an extreme. + function addDataEntry(file, data) // Unideal to an extreme. addURIEntry(file, "data:text/plain;charset=UTF-8," + encodeURI(data)); let empty = set("area base basefont br col frame hr img input isindex link meta param" @@ -805,7 +805,7 @@ const Dactyl = Module("dactyl", { * false on error. * * @param {string|Array} urls A representation of the URLs to open. May be - * either a string, which will be bassed to + * either a string, which will be passed to * {@see Dactyl#stringToURLArray}, or an array in the same format as * would be returned by the same. * @param {object} params A set of parameters specifing to open the @@ -813,7 +813,7 @@ const Dactyl = Module("dactyl", { * * • background If true, new tabs are opened in the background. * - * • from The desgination of the opener, as appears in + * • from The designation of the opener, as appears in * 'activate' and 'newtab' options. If present, * the newtab option provides the default 'where' * parameter, and the value of the 'activate' @@ -821,7 +821,7 @@ const Dactyl = Module("dactyl", { * * • where One of CURRENT_TAB, NEW_TAB, or NEW_WINDOW * - * As a deprecated special case, the where paramater may be provided + * As a deprecated special case, the where parameter may be provided * by itself, in which case it is transformed into { where: params }. * * @param {boolean} force Don't prompt whether to open more than 20 @@ -2070,7 +2070,7 @@ const Dactyl = Module("dactyl", { // FIXME: // 'encoding' option should not be set at this timing. // Probably a wrong value is set into the option, - // if current page's encoging is not UTF-8. + // if current page's encoding is not UTF-8. try { if (option.name != "encoding"); option.value = option.value; diff --git a/common/content/events.js b/common/content/events.js index f054d6dd..97f2c69f 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -303,7 +303,7 @@ const Events = Module("events", { // A special hack for dactyl-specific key names. if (evt_obj.dactylString || evt_obj.dactylShift) { evt.dactylString = evt_obj.dactylString; // for key-less keypress events e.g. - evt.dactylShift = evt_obj.dactylShift; // for untypable shift keys e.g. + evt.dactylShift = evt_obj.dactylShift; // for untypeable shift keys e.g. events.onKeyPress(evt); } @@ -383,7 +383,7 @@ const Events = Module("events", { * maps to , maps to A * << maps to * - * is preserved, as in vim, to allow untypable key-combinations + * is preserved, as in vim, to allow untypeable key-combinations * in macros. * * canonicalKeys(canonicalKeys(x)) == canonicalKeys(x) for all values @@ -408,7 +408,7 @@ const Events = Module("events", { * .dactylShift these are set for characters that can never by * typed, but may appear in mappings, for example is passed as * dactylString, and dactylShift is set when a user specifies - * where @ is a non-case-changable, non-space character. + * where @ is a non-case-changeable, non-space character. * * @param {string} keys The string to parse. * @returns {Array[Object]} diff --git a/common/content/hints.js b/common/content/hints.js index fc5886dd..20638960 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -180,7 +180,7 @@ const Hints = Module("hints", { let leftBound = Infinity; let topBound = Infinity; - // First find the top-left corner of the bounding rectangle (offset from image topleft can be noticably suboptimal) + // First find the top-left corner of the bounding rectangle (offset from image topleft can be noticeably suboptimal) for (let i = 0; i < coords.length; i += 2) { leftBound = Math.min(coords[i], leftBound); topBound = Math.min(coords[i + 1], topBound); diff --git a/common/content/io.js b/common/content/io.js index 1a15b77a..e621e874 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -518,7 +518,7 @@ lookup: }, /** - * @property {string} The current platform's path seperator. + * @property {string} The current platform's path separator. */ PATH_SEP: File.PATH_SEP }, { diff --git a/common/content/options.js b/common/content/options.js index 8872c35b..5931534f 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -272,7 +272,7 @@ const Option = Class("Option", { /** * @property {function(host, values)} A function which should return a list - * of domains referenced in the given values. Used in determing whether + * of domains referenced in the given values. Used in determining whether * to purge the command from history when clearing private data. * @see Command#domains */ @@ -786,7 +786,7 @@ const Options = Module("options", { * Remove the option with matching name. * * @param {string} name The name of the option to remove. This can be - * any of the options's names. + * any of the option's names. */ remove: function (name) { let opt = this.get(name); @@ -802,7 +802,7 @@ const Options = Module("options", { * Returns the value of the preference name. * * @param {string} name The preference name. - * @param {value} forcedDefault The the default value for this + * @param {value} forcedDefault The default value for this * preference. Used for internal dactyl preferences. */ getPref: function (name, forcedDefault) { diff --git a/common/modules/base.jsm b/common/modules/base.jsm index a3bd51cf..12a007ad 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -376,7 +376,7 @@ function iter(obj) { /** * Returns true if both arguments are functions and - * (targ() instaneof src) would also return true. + * (targ() instanceof src) would also return true. * * @param {function} targ * @param {function} src diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm index 1e404a07..1888bb27 100644 --- a/common/modules/storage.jsm +++ b/common/modules/storage.jsm @@ -405,7 +405,7 @@ const File = Class("File", { if (!perms) perms = parseInt('0644', 8); - if (!this.exists()) // OCREAT won't creat the directory + if (!this.exists()) // OCREAT won't create the directory this.create(this.NORMAL_FILE_TYPE, perms); ofstream.init(this, mode, perms, 0); @@ -486,7 +486,7 @@ const File = Class("File", { MODE_EXCL: 0x80, /** - * @property {string} The current platform's path seperator. + * @property {string} The current platform's path separator. */ get PATH_SEP() { delete this.PATH_SEP;