mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-09 19:25:46 +01:00
WIP on master: d52fcb4 Fix bookmarks.isBookmarked so we don't get spurious hearts in the status line.
This commit is contained in:
@@ -251,16 +251,7 @@ Option.prototype = {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (this.setter)
|
if (this.setter)
|
||||||
{
|
newValue = this.setter(newValue);
|
||||||
let tmpValue = newValue;
|
|
||||||
newValue = this.setter.call(this, newValue);
|
|
||||||
|
|
||||||
if (newValue === undefined)
|
|
||||||
{
|
|
||||||
newValue = tmpValue;
|
|
||||||
liberator.log("DEPRECATED: '" + this.name + "' setter should return a value");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (liberator.has("tabs") && (scope & options.OPTION_SCOPE_LOCAL))
|
if (liberator.has("tabs") && (scope & options.OPTION_SCOPE_LOCAL))
|
||||||
tabs.options[this.name] = newValue;
|
tabs.options[this.name] = newValue;
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ function Tabs() //{{{
|
|||||||
setter: function (value)
|
setter: function (value)
|
||||||
{
|
{
|
||||||
let [open, restriction] = [1, 0];
|
let [open, restriction] = [1, 0];
|
||||||
for (let [, opt] in value)
|
for (let [, opt] in Iterator(this.parseValue(value)))
|
||||||
{
|
{
|
||||||
if (opt == "tab")
|
if (opt == "tab")
|
||||||
open = 3;
|
open = 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user