mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Fix a few more comment typos.
This commit is contained in:
@@ -178,7 +178,7 @@ AboutHandler.prototype = {
|
|||||||
getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT,
|
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.
|
// Doesn't belong here.
|
||||||
function Shim() {}
|
function Shim() {}
|
||||||
Shim.prototype = {
|
Shim.prototype = {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
|
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
|
||||||
// Copyright (c) 2010 by anekos <anekos@snca.net>
|
// 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
|
// This work is licensed for reuse under an MIT license. Details are
|
||||||
// given in the License.txt file included with this file.
|
// given in the License.txt file included with this file.
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ const Buffer = Module("buffer", {
|
|||||||
let doc = event.originalTarget;
|
let doc = event.originalTarget;
|
||||||
// document is part of a frameset
|
// document is part of a frameset
|
||||||
if (doc.defaultView.frameElement) {
|
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
|
// when you click on a link inside a frameset, because asyncUpdateUI
|
||||||
// is not triggered there (Gecko bug?)
|
// is not triggered there (Gecko bug?)
|
||||||
this.timeout(function () { statusline.updateUrl(); }, 10);
|
this.timeout(function () { statusline.updateUrl(); }, 10);
|
||||||
@@ -814,7 +814,7 @@ const Buffer = Module("buffer", {
|
|||||||
// find the currently focused frame index
|
// find the currently focused frame index
|
||||||
// TODO: If the window is a frameset then the first _frame_ should be
|
// TODO: If the window is a frameset then the first _frame_ should be
|
||||||
// focused. Since this is not the current FF behaviour,
|
// 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.
|
// first frame.
|
||||||
let current = frames.indexOf(document.commandDispatcher.focusedWindow);
|
let current = frames.indexOf(document.commandDispatcher.focusedWindow);
|
||||||
|
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ const Command = Class("Command", {
|
|||||||
count: false,
|
count: false,
|
||||||
/**
|
/**
|
||||||
* @property {function(args)} A function which should return a list
|
* @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
|
* whether to purge the command from history when clearing
|
||||||
* private data.
|
* private data.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -666,7 +666,7 @@ const CompletionContext = Class("CompletionContext", {
|
|||||||
* @param {boolean} interruptible When true, the call may be interrupted
|
* @param {boolean} interruptible When true, the call may be interrupted
|
||||||
* via <C-c>, in which case, "Interrupted" may be thrown.
|
* via <C-c>, in which case, "Interrupted" may be thrown.
|
||||||
* @param {number} timeout The maximum time, in milliseconds, to wait.
|
* @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) {
|
wait: function wait(interruptable, timeout) {
|
||||||
let end = Date.now() + timeout;
|
let end = Date.now() + timeout;
|
||||||
|
|||||||
@@ -576,7 +576,7 @@ const Dactyl = Module("dactyl", {
|
|||||||
function addURIEntry(file, uri)
|
function addURIEntry(file, uri)
|
||||||
zip.addEntryChannel(PATH + file, TIME, 9,
|
zip.addEntryChannel(PATH + file, TIME, 9,
|
||||||
services.get("io").newChannel(uri, null, null), false);
|
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));
|
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"
|
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.
|
* false on error.
|
||||||
*
|
*
|
||||||
* @param {string|Array} urls A representation of the URLs to open. May be
|
* @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
|
* {@see Dactyl#stringToURLArray}, or an array in the same format as
|
||||||
* would be returned by the same.
|
* would be returned by the same.
|
||||||
* @param {object} params A set of parameters specifing to open the
|
* @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.
|
* • 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,
|
* 'activate' and 'newtab' options. If present,
|
||||||
* the newtab option provides the default 'where'
|
* the newtab option provides the default 'where'
|
||||||
* parameter, and the value of the 'activate'
|
* 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
|
* • 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 }.
|
* by itself, in which case it is transformed into { where: params }.
|
||||||
*
|
*
|
||||||
* @param {boolean} force Don't prompt whether to open more than 20
|
* @param {boolean} force Don't prompt whether to open more than 20
|
||||||
@@ -2070,7 +2070,7 @@ const Dactyl = Module("dactyl", {
|
|||||||
// FIXME:
|
// FIXME:
|
||||||
// 'encoding' option should not be set at this timing.
|
// 'encoding' option should not be set at this timing.
|
||||||
// Probably a wrong value is set into the option,
|
// 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 {
|
try {
|
||||||
if (option.name != "encoding");
|
if (option.name != "encoding");
|
||||||
option.value = option.value;
|
option.value = option.value;
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ const Events = Module("events", {
|
|||||||
// A special hack for dactyl-specific key names.
|
// A special hack for dactyl-specific key names.
|
||||||
if (evt_obj.dactylString || evt_obj.dactylShift) {
|
if (evt_obj.dactylString || evt_obj.dactylShift) {
|
||||||
evt.dactylString = evt_obj.dactylString; // for key-less keypress events e.g. <Nop>
|
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);
|
events.onKeyPress(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -383,7 +383,7 @@ const Events = Module("events", {
|
|||||||
* <C- > maps to <C-Space>, <S-a> maps to A
|
* <C- > maps to <C-Space>, <S-a> maps to A
|
||||||
* << maps to <lt><lt>
|
* << 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.
|
* in macros.
|
||||||
*
|
*
|
||||||
* canonicalKeys(canonicalKeys(x)) == canonicalKeys(x) for all values
|
* 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
|
* .dactylShift these are set for characters that can never by
|
||||||
* typed, but may appear in mappings, for example <Nop> is passed as
|
* typed, but may appear in mappings, for example <Nop> is passed as
|
||||||
* dactylString, and dactylShift is set when a user specifies
|
* 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.
|
* @param {string} keys The string to parse.
|
||||||
* @returns {Array[Object]}
|
* @returns {Array[Object]}
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ const Hints = Module("hints", {
|
|||||||
let leftBound = Infinity;
|
let leftBound = Infinity;
|
||||||
let topBound = 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) {
|
for (let i = 0; i < coords.length; i += 2) {
|
||||||
leftBound = Math.min(coords[i], leftBound);
|
leftBound = Math.min(coords[i], leftBound);
|
||||||
topBound = Math.min(coords[i + 1], topBound);
|
topBound = Math.min(coords[i + 1], topBound);
|
||||||
|
|||||||
@@ -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
|
PATH_SEP: File.PATH_SEP
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ const Option = Class("Option", {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {function(host, values)} A function which should return a list
|
* @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.
|
* to purge the command from history when clearing private data.
|
||||||
* @see Command#domains
|
* @see Command#domains
|
||||||
*/
|
*/
|
||||||
@@ -786,7 +786,7 @@ const Options = Module("options", {
|
|||||||
* Remove the option with matching <b>name</b>.
|
* Remove the option with matching <b>name</b>.
|
||||||
*
|
*
|
||||||
* @param {string} name The name of the option to remove. This can be
|
* @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) {
|
remove: function (name) {
|
||||||
let opt = this.get(name);
|
let opt = this.get(name);
|
||||||
@@ -802,7 +802,7 @@ const Options = Module("options", {
|
|||||||
* Returns the value of the preference <b>name</b>.
|
* Returns the value of the preference <b>name</b>.
|
||||||
*
|
*
|
||||||
* @param {string} name 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.
|
* preference. Used for internal dactyl preferences.
|
||||||
*/
|
*/
|
||||||
getPref: function (name, forcedDefault) {
|
getPref: function (name, forcedDefault) {
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ function iter(obj) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if both arguments are functions and
|
* 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} targ
|
||||||
* @param {function} src
|
* @param {function} src
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ const File = Class("File", {
|
|||||||
|
|
||||||
if (!perms)
|
if (!perms)
|
||||||
perms = parseInt('0644', 8);
|
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);
|
this.create(this.NORMAL_FILE_TYPE, perms);
|
||||||
|
|
||||||
ofstream.init(this, mode, perms, 0);
|
ofstream.init(this, mode, perms, 0);
|
||||||
@@ -486,7 +486,7 @@ const File = Class("File", {
|
|||||||
MODE_EXCL: 0x80,
|
MODE_EXCL: 0x80,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {string} The current platform's path seperator.
|
* @property {string} The current platform's path separator.
|
||||||
*/
|
*/
|
||||||
get PATH_SEP() {
|
get PATH_SEP() {
|
||||||
delete this.PATH_SEP;
|
delete this.PATH_SEP;
|
||||||
|
|||||||
Reference in New Issue
Block a user