mozilla/addon-sdk — pull request #442 by gregglind (2012-05-16 23:07:25+00:00)
Title: Bug 709382 require("simple-prefs").prefs should be iterable

Replaces https://github.com/mozilla/addon-sdk/pull/300/

(rebased most of Erik Vold's changes onto current, added even more tests).

I have a few additional suggestions:

1. Consider exposing the underying component in the Prefs object (maybe as `_branch`).
2. `getChildList` maintains the misleading naming of the original XPCOM. Also, if we are returning that list,
why not just get the pref for each? (i.e., it should return an object, not a list)