1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:48:00 +01:00

Fix a few more comment typos.

This commit is contained in:
Doug Kearns
2010-09-24 16:52:32 +10:00
parent 0d2b1b6dfd
commit c111b047c6
12 changed files with 22 additions and 22 deletions

View File

@@ -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 = {

View File

@@ -1,6 +1,6 @@
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
// Copyright (c) 2010 by anekos <anekos@snca.net>
// Copyright (c) 2010 by Kris Maglion <maglione.k at Gmail>
// Copyright (c) 2010 by Kris Maglione <maglione.k at Gmail>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the License.txt file included with this file.

View File

@@ -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);

View File

@@ -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.
*/

View File

@@ -666,7 +666,7 @@ const CompletionContext = Class("CompletionContext", {
* @param {boolean} interruptible When true, the call may be interrupted
* via <C-c>, 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;

View File

@@ -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;

View File

@@ -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. <Nop>
evt.dactylShift = evt_obj.dactylShift; // for untypable shift keys e.g. <S-1>
evt.dactylShift = evt_obj.dactylShift; // for untypeable shift keys e.g. <S-1>
events.onKeyPress(evt);
}
@@ -383,7 +383,7 @@ const Events = Module("events", {
* <C- > maps to <C-Space>, <S-a> maps to A
* << maps to <lt><lt>
*
* <S-@> is preserved, as in vim, to allow untypable key-combinations
* <S-@> 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 <Nop> is passed as
* dactylString, and dactylShift is set when a user specifies
* <S-@> where @ is a non-case-changable, non-space character.
* <S-@> where @ is a non-case-changeable, non-space character.
*
* @param {string} keys The string to parse.
* @returns {Array[Object]}

View File

@@ -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);

View File

@@ -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
}, {

View File

@@ -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 <b>name</b>.
*
* @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 <b>name</b>.
*
* @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) {

View File

@@ -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

View File

@@ -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;