mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:47:58 +01:00
Fix user :commands and other minor cleanup.
--HG-- extra : rebase_source : 1cff53f18c70b12a984d120e73d121dc2267dcc9
This commit is contained in:
@@ -322,7 +322,7 @@ var Command = Class("Command", {
|
|||||||
if (callable(params))
|
if (callable(params))
|
||||||
function makeParams(self, args)
|
function makeParams(self, args)
|
||||||
array.toObject([[k, process(v)]
|
array.toObject([[k, process(v)]
|
||||||
for ([k, v] in iter(params.apply(this, args)))])
|
for ([k, v] in iter(params.apply(self, args)))])
|
||||||
else if (params)
|
else if (params)
|
||||||
function makeParams(self, args)
|
function makeParams(self, args)
|
||||||
array.toObject([[name, process(args[i])]
|
array.toObject([[name, process(args[i])]
|
||||||
|
|||||||
@@ -351,7 +351,6 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
Bell background-color: black !important;
|
Bell background-color: black !important;
|
||||||
|
|
||||||
Hint;;*;FontFixed {
|
Hint;;*;FontFixed {
|
||||||
font-size: 10px !important;
|
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
background-color: red;
|
background-color: red;
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@@ -25,12 +25,15 @@ services.subscriptLoader.loadSubScript("chrome://browser/content/sanitize.js", t
|
|||||||
tmp.Sanitizer.prototype.__proto__ = Class.prototype;
|
tmp.Sanitizer.prototype.__proto__ = Class.prototype;
|
||||||
|
|
||||||
var Range = Struct("min", "max");
|
var Range = Struct("min", "max");
|
||||||
Range.prototype.contains = function (date)
|
update(Range.prototype, {
|
||||||
date == null || (this.min == null || date >= this.min) && (this.max == null || date <= this.max);
|
contains: function (date) date == null ||
|
||||||
Range.prototype.__defineGetter__("isEternity", function () this.max == null && this.min == null);
|
(this.min == null || date >= this.min) && (this.max == null || date <= this.max),
|
||||||
Range.prototype.__defineGetter__("isSession", function () this.max == null && this.min == sanitizer.sessionStart);
|
|
||||||
Range.prototype.__defineGetter__("native", function ()
|
get isEternity() this.max == null && this.min == null,
|
||||||
this.isEternity ? null : [range.min || 0, range.max == null ? Number.MAX_VALUE : range.max]);
|
get isSession() this.max == null && this.min == sanitizer.sessionStart,
|
||||||
|
|
||||||
|
get native() this.isEternity ? null : [range.min || 0, range.max == null ? Number.MAX_VALUE : range.max]
|
||||||
|
});
|
||||||
|
|
||||||
var Item = Class("Item", {
|
var Item = Class("Item", {
|
||||||
init: function (name) {
|
init: function (name) {
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ var Styles = Module("Styles", {
|
|||||||
]]>, "gi",
|
]]>, "gi",
|
||||||
{
|
{
|
||||||
space: /(?: \s | \/\* .*? \*\/ )/,
|
space: /(?: \s | \/\* .*? \*\/ )/,
|
||||||
string: /(?:"(?:[^\\"]|\\.)*(?:"|$)|'(?:[^\\']|\\.)*(?:'|$))/
|
string: /(?:" (?:[^\\"]|\\.)* (?:"|$) | '(?:[^\\']|\\.)* (?:'|$) )/
|
||||||
})
|
})
|
||||||
}, {
|
}, {
|
||||||
commands: function (dactyl, modules, window) {
|
commands: function (dactyl, modules, window) {
|
||||||
|
|||||||
Reference in New Issue
Block a user