1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

Really fix Options#op, as well as :setcomm /dev/null <(js -v 180 options.js |& grep -v ReferenceError | grep .) completion.

This commit is contained in:
Kris Maglione
2008-11-26 08:41:25 +00:00
parent d35e3a0c8e
commit 5da5f6336a

View File

@@ -244,7 +244,7 @@ Option.prototype = {
if (invert)
{
let keepValues = this.values.filter(function (item) values.indexOf(item) == -1);
let addValues = values.filter(function (item) this.values.indexOf(item) == -1);
let addValues = values.filter(function (item) self.values.indexOf(item) == -1);
newValue = addValues.concat(keepValues);
}
break;
@@ -681,7 +681,7 @@ function Options() //{{{
let prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch);
context.keys = [function (pref) pref, function (pref) options.getPref(pref)];
context.keys = { text: function (pref) pref.item, description: function (pref) options.getPref(pref.item) };
context.completions = prefs.getChildList("", { value: 0 });
return;
}