mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-23 15:53:31 +01:00
Add Option.has(). Improve JS completion.
This commit is contained in:
@@ -155,9 +155,8 @@ const liberator = (function () //{{{
|
||||
function ()
|
||||
{
|
||||
liberator.open("chrome://mozapps/content/extensions/extensions.xul",
|
||||
(liberator.options["newtab"] &&
|
||||
(liberator.options["newtab"] == "all" || liberator.options["newtab"].split(",").indexOf("addons") != -1)) ?
|
||||
liberator.NEW_TAB: liberator.CURRENT_TAB);
|
||||
(liberator.options["newtab"] && liberator.options.get("newtab").has("all", "addons"))
|
||||
? liberator.NEW_TAB: liberator.CURRENT_TAB);
|
||||
},
|
||||
{ argCount: "0" });
|
||||
|
||||
@@ -329,9 +328,8 @@ const liberator = (function () //{{{
|
||||
if (special) // open javascript console
|
||||
{
|
||||
liberator.open("chrome://global/content/console.xul",
|
||||
(liberator.options["newtab"] &&
|
||||
(liberator.options["newtab"] == "all" || liberator.options["newtab"].split(",").indexOf("javascript") != -1)) ?
|
||||
liberator.NEW_TAB : liberator.CURRENT_TAB);
|
||||
(liberator.options["newtab"] && liberator.options.get("newtab").has("all", "javascript"))
|
||||
? liberator.NEW_TAB : liberator.CURRENT_TAB);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -889,9 +887,8 @@ const liberator = (function () //{{{
|
||||
|
||||
help: function (topic)
|
||||
{
|
||||
var where = (liberator.options["newtab"] && (liberator.options["newtab"] == "all" ||
|
||||
liberator.options["newtab"].split(",").indexOf("help") != -1)) ?
|
||||
liberator.NEW_TAB : liberator.CURRENT_TAB;
|
||||
var where = (liberator.options["newtab"] && liberator.options.get("newtab").has("all", "help"))
|
||||
? liberator.NEW_TAB : liberator.CURRENT_TAB;
|
||||
|
||||
if (!topic)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user