mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:18:00 +01:00
Use options.allPrefs rather than nsIPrefBranch#getChildList
This commit is contained in:
@@ -1187,7 +1187,7 @@ function Options() //{{{
|
|||||||
if (!filter)
|
if (!filter)
|
||||||
filter = "";
|
filter = "";
|
||||||
|
|
||||||
let prefArray = services.get("pref").getChildList("", { value: 0 });
|
let prefArray = options.allPrefs();
|
||||||
prefArray.sort();
|
prefArray.sort();
|
||||||
let prefs = function () {
|
let prefs = function () {
|
||||||
for (let [, pref] in Iterator(prefArray))
|
for (let [, pref] in Iterator(prefArray))
|
||||||
|
|||||||
@@ -311,15 +311,8 @@ function Sanitizer() //{{{
|
|||||||
return errors;
|
return errors;
|
||||||
};
|
};
|
||||||
|
|
||||||
self.__defineGetter__("prefNames", function () {
|
self.__defineGetter__("prefNames",
|
||||||
let ret = [];
|
function () util.Array.flatten([self.prefDomain, self.prefDomain2].map(options.allPrefs)));
|
||||||
|
|
||||||
[self.prefDomain, self.prefDomain2].forEach(function (branch) {
|
|
||||||
ret = ret.concat(services.get("pref").getBranch(branch).getChildList("", {}).map(function (pref) branch + pref));
|
|
||||||
});
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
});
|
|
||||||
//}}}
|
//}}}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
Reference in New Issue
Block a user