summaryrefslogtreecommitdiff
path: root/common/content
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2009-09-23 01:09:11 -0400
committerKris Maglione <maglione.k@gmail.com>2009-09-23 01:09:11 -0400
commit4931f013535d9ab945ded449bda84d229658bc8b (patch)
treec20fa4cc3bd377b4665d1cfa4257111dca71226f /common/content
parentb980157575dc5a96ddb2e6a750567de3aafa2d9b (diff)
downloadpentadactyl-4931f013535d9ab945ded449bda84d229658bc8b.tar.gz
Use options.allPrefs rather than nsIPrefBranch#getChildList
Diffstat (limited to 'common/content')
-rw-r--r--common/content/options.js2
-rw-r--r--common/content/sanitizer.js11
2 files changed, 3 insertions, 10 deletions
diff --git a/common/content/options.js b/common/content/options.js
index 9ea4ef5c..00bf0745 100644
--- a/common/content/options.js
+++ b/common/content/options.js
@@ -1187,7 +1187,7 @@ function Options() //{{{
if (!filter)
filter = "";
- let prefArray = services.get("pref").getChildList("", { value: 0 });
+ let prefArray = options.allPrefs();
prefArray.sort();
let prefs = function () {
for (let [, pref] in Iterator(prefArray))
diff --git a/common/content/sanitizer.js b/common/content/sanitizer.js
index 579ccf93..4db4f33d 100644
--- a/common/content/sanitizer.js
+++ b/common/content/sanitizer.js
@@ -311,15 +311,8 @@ function Sanitizer() //{{{
return errors;
};
- self.__defineGetter__("prefNames", function () {
- let ret = [];
-
- [self.prefDomain, self.prefDomain2].forEach(function (branch) {
- ret = ret.concat(services.get("pref").getBranch(branch).getChildList("", {}).map(function (pref) branch + pref));
- });
-
- return ret;
- });
+ self.__defineGetter__("prefNames",
+ function () util.Array.flatten([self.prefDomain, self.prefDomain2].map(options.allPrefs)));
//}}}
return self;