1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 19:52:27 +01:00
This commit is contained in:
Kris Maglione
2014-01-11 16:06:12 -08:00
7 changed files with 19 additions and 2 deletions

View File

@@ -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),

View File

@@ -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>

View File

@@ -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>

View File

@@ -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));

View File

@@ -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() };
}