mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:07:59 +01:00
Fix typos in hints.js and protocols.js. Closes issue #144.
This commit is contained in:
@@ -42,7 +42,7 @@ function makeChannel(url, orig) {
|
|||||||
function fakeChannel(orig) makeChannel("chrome://liberator/content/does/not/exist", orig);
|
function fakeChannel(orig) makeChannel("chrome://liberator/content/does/not/exist", orig);
|
||||||
function redirect(to, orig) {
|
function redirect(to, orig) {
|
||||||
let html = <html><head><meta http-equiv="Refresh" content={"0;" + to}/></head></html>.toXMLString();
|
let html = <html><head><meta http-equiv="Refresh" content={"0;" + to}/></head></html>.toXMLString();
|
||||||
return makeChannel(dataURL('text/html', html), ioServices.newURI(to, null, null));
|
return makeChannel(dataURL('text/html', html), ioService.newURI(to, null, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
function ChromeData() {}
|
function ChromeData() {}
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ const Hints = Module("hints", {
|
|||||||
* link (when 'followhints' is 1 or 2)
|
* link (when 'followhints' is 1 or 2)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
__processHints: function (followFirst) {
|
_processHints: function (followFirst) {
|
||||||
if (this._validHints.length == 0) {
|
if (this._validHints.length == 0) {
|
||||||
liberator.beep();
|
liberator.beep();
|
||||||
return false;
|
return false;
|
||||||
@@ -489,7 +489,7 @@ const Hints = Module("hints", {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (modes.extended & modes.HINTS)
|
if (modes.extended & modes.HINTS)
|
||||||
modes.reset();
|
modes.reset();
|
||||||
this._hintMode.action(elem, elem.href || "", this._extendedhintCount);
|
hints._hintMode.action(elem, elem.href || "", hints._extendedhintCount);
|
||||||
}, timeout);
|
}, timeout);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
@@ -505,7 +505,7 @@ const Hints = Module("hints", {
|
|||||||
if (this._hintNumber > 0 && this._hintNumber * 10 <= this._validHints.length) {
|
if (this._hintNumber > 0 && this._hintNumber * 10 <= this._validHints.length) {
|
||||||
let timeout = options["hinttimeout"];
|
let timeout = options["hinttimeout"];
|
||||||
if (timeout > 0)
|
if (timeout > 0)
|
||||||
this._activeTimeout = setTimeout(function () { this._processHints(true); }, timeout);
|
this._activeTimeout = setTimeout(function () { hints._processHints(true); }, timeout);
|
||||||
}
|
}
|
||||||
else // we have a unique hint
|
else // we have a unique hint
|
||||||
this._processHints(true);
|
this._processHints(true);
|
||||||
@@ -519,7 +519,7 @@ const Hints = Module("hints", {
|
|||||||
*
|
*
|
||||||
* @param {Event} event The keypress event.
|
* @param {Event} event The keypress event.
|
||||||
*/
|
*/
|
||||||
__onInput: function (event) {
|
_onInput: function (event) {
|
||||||
this._prevInput = "text";
|
this._prevInput = "text";
|
||||||
|
|
||||||
// clear any timeout which might be active after pressing a number
|
// clear any timeout which might be active after pressing a number
|
||||||
@@ -731,7 +731,7 @@ const Hints = Module("hints", {
|
|||||||
this._hintMode = this._hintModes[minor];
|
this._hintMode = this._hintModes[minor];
|
||||||
if (!this._hintMode)
|
if (!this._hintMode)
|
||||||
return void liberator.beep();
|
return void liberator.beep();
|
||||||
commandline.input(this._hintMode.prompt + ": ", null, { onChange: this._onInput });
|
commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput });
|
||||||
modes.extended = modes.HINTS;
|
modes.extended = modes.HINTS;
|
||||||
|
|
||||||
this._submode = minor;
|
this._submode = minor;
|
||||||
|
|||||||
Reference in New Issue
Block a user