mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 17:45:45 +01:00
Deal with echoed messages being cleared by scroll event. Closes issue #374.
This commit is contained in:
@@ -60,6 +60,9 @@ var Option = Class("Option", {
|
||||
if (this.type in Option.stringify)
|
||||
this.stringify = Option.stringify[this.type];
|
||||
|
||||
if (this.type in Option.domains)
|
||||
this.domains = Option.domains[this.type];
|
||||
|
||||
if (this.type in Option.testValues)
|
||||
this.testValues = Option.testValues[this.type];
|
||||
|
||||
@@ -331,7 +334,7 @@ var Option = Class("Option", {
|
||||
* references to a given domain from the given values.
|
||||
*/
|
||||
filterDomain: function filterDomain(host, values)
|
||||
Array.filter(values, function (val) !util.isSubdomain(val, host)),
|
||||
Array.filter(values, function (val) !this.domains([val]).some(function (val) util.isSubdomain(val, host)), this),
|
||||
|
||||
/**
|
||||
* @property {value} The option's default value. This value will be used
|
||||
@@ -471,6 +474,11 @@ var Option = Class("Option", {
|
||||
get sitemap() this.regexplist
|
||||
},
|
||||
|
||||
domains: {
|
||||
sitelist: function (vals) array.compact(vals.map(function (site) util.getHost(site.filter))),
|
||||
get sitemap() this.sitelist
|
||||
},
|
||||
|
||||
stringify: {
|
||||
charlist: function (vals) Commands.quote(vals.join("")),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user