mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 19:52:27 +01:00
Merge.
This commit is contained in:
@@ -71,6 +71,8 @@ var AutoCmdHive = Class("AutoCmdHive", Contexts.Hive, {
|
||||
*/
|
||||
var AutoCommands = Module("autocommands", {
|
||||
init: function () {
|
||||
if (config.haveGecko("26"))
|
||||
delete config.autocommands.DownloadPost; // FIXME
|
||||
},
|
||||
|
||||
get activeHives() contexts.allGroups.autocmd.filter(h => h._store.length),
|
||||
|
||||
@@ -74,6 +74,9 @@
|
||||
<dl>
|
||||
<dt>-sort</dt> <dd>Sort order (see <o>downloadsort</o>) (short name: <em>-s</em>)</dd>
|
||||
</dl>
|
||||
<note>
|
||||
This command is currently unavailable in &dactyl.host; 26 and greater.
|
||||
</note>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
|
||||
@@ -576,8 +576,12 @@
|
||||
<tags>'dls' 'dlsort' 'downloadsort'</tags>
|
||||
<spec>'downloadsort' 'dlsort' 'dls'</spec>
|
||||
<strut/>
|
||||
<!--
|
||||
<type>&option.downloadsort.type;</type>
|
||||
<default>&option.downloadsort.default;</default>
|
||||
-->
|
||||
<type>stringlist</type>
|
||||
<default>-active,+filename</default>
|
||||
<description>
|
||||
<p>
|
||||
<ex>:downloads</ex> sort order, in order of precedence.
|
||||
@@ -596,6 +600,9 @@
|
||||
<dt>time</dt> <dd>Time remaining</dd>
|
||||
<dt>url</dt> <dd>Source URL</dd>
|
||||
</dl>
|
||||
<note>
|
||||
This option is currently unavailable in &dactyl.host; 26 and greater.
|
||||
</note>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
|
||||
@@ -45,6 +45,9 @@ var ConfigBase = Class("ConfigBase", {
|
||||
* initialization code. Must call superclass's init function.
|
||||
*/
|
||||
init: function init() {
|
||||
if (config.haveGecko("26"))
|
||||
this.modules.global = this.modules.global.filter(m => m != "downloads"); // FIXME
|
||||
|
||||
this.loadConfig();
|
||||
|
||||
this.features.push = deprecated("Set.add", function push(feature) Set.add(this, feature));
|
||||
|
||||
@@ -446,6 +446,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
||||
if (args.bang)
|
||||
dactyl.assert(args.length == 0, _("error.trailingCharacters"));
|
||||
else {
|
||||
dactyl.assert(args.length, _("error.argumentRequired"));
|
||||
dactyl.assert(opt.validator(args), _("error.invalidArgument"));
|
||||
opt = { __proto__: opt, value: args.slice() };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user