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

Fix some missed option transformations from revision 99347338113f.

This commit is contained in:
Kris Maglione
2010-09-24 17:10:37 -04:00
parent 01e39d1278
commit 940c9d7434
2 changed files with 5 additions and 5 deletions

View File

@@ -510,7 +510,7 @@ const Bookmarks = Module("bookmarks", {
if (!context.filter)
return;
let engineList = (engineAliases || options["suggestengines"] || "google").split(",");
let engineList = (engineAliases || options["suggestengines"].join(",") || "google").split(",");
let completions = [];
engineList.forEach(function (name) {

View File

@@ -41,8 +41,8 @@ const Hints = Module("hints", {
});
const Mode = Hints.Mode;
Mode.defaultValue("tags", function () function () options.hinttags);
function extended() options.extendedhinttags;
Mode.defaultValue("tags", function () function () options["hinttags"]);
function extended() options["extendedhinttags"];
function images() util.makeXPath(["img"]);
this._hintModes = {
@@ -128,7 +128,7 @@ const Hints = Module("hints", {
if (elem instanceof HTMLInputElement && set.has(Events.editableInputs, elem.type))
return [elem.value, false];
else {
for (let [, option] in Iterator(options["hintinputs"].split(","))) {
for (let [, option] in Iterator(options["hintinputs"])) {
if (option == "value") {
if (elem instanceof HTMLSelectElement) {
if (elem.selectedIndex >= 0)
@@ -718,7 +718,7 @@ const Hints = Module("hints", {
* element that matches.
* @param {function():string} tags The function that returns an
* XPath expression to decide which elements can be hinted (the
* default returns options.hinttags).
* default returns options["hinttags"]).
* @optional
*/
addMode: function (mode, prompt, action, tags) {