1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 11:17:58 +01:00

Fix some brokenness.

This commit is contained in:
Kris Maglione
2009-11-15 06:48:00 -05:00
parent ae3cf7b02c
commit 7ad0b06f4d
3 changed files with 3 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ const CommandLine = Module("commandline", {
});
this.registerCallback("complete", modes.PROMPT, function (context) {
if (self._input.complete)
context.fork("input", 0, commandline, input.complete);
context.fork("input", 0, commandline, self._input.complete);
});
function cancelPrompt(value) {

View File

@@ -1049,7 +1049,7 @@ const Hints = Module("hints", {
promptHighlight: "Normal",
completer: function (context) {
context.compare = function () 0;
context.completions = [[k, v.prompt] for ([k, v] in Iterator(this._hintModes))];
context.completions = [[k, v.prompt] for ([k, v] in Iterator(hints._hintModes))];
},
onChange: function () { modes.pop(); },
onCancel: function (arg) { arg && setTimeout(function () hints.show(arg), 0); }

View File

@@ -43,7 +43,7 @@ const Option = Class("Option", {
// add no{option} variant of boolean {option} to this.names
if (this.type == "boolean")
this.names = array([name, "no" + name] for (name in values(names))).flatten();
this.names = array([name, "no" + name] for (name in values(names))).flatten().__proto__;
if (this.globalValue == undefined)
this.globalValue = this.defaultValue;