1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 19:15:45 +01:00

Fix more function formatting faux pas as per the style guide.

This commit is contained in:
Doug Kearns
2009-06-01 16:13:38 +10:00
parent cd3364197f
commit 64a9c9554c
12 changed files with 35 additions and 62 deletions

View File

@@ -724,10 +724,8 @@ function Options() //{{{
if (!/keypress/.test(popupAllowedEvents))
{
storePreference("dom.popup_allowed_events", popupAllowedEvents + " keypress");
liberator.registerObserver("shutdown", function ()
{
if (loadPreference("dom.popup_allowed_events", "")
== popupAllowedEvents + " keypress")
liberator.registerObserver("shutdown", function () {
if (loadPreference("dom.popup_allowed_events", "") == popupAllowedEvents + " keypress")
storePreference("dom.popup_allowed_events", popupAllowedEvents);
});
}
@@ -919,8 +917,7 @@ function Options() //{{{
/////////////////////////////////////////////////////////////////////////////{{{
// TODO: Does this belong elsewhere?
liberator.registerObserver("load_completion", function ()
{
liberator.registerObserver("load_completion", function () {
completion.setFunctionCompleter(options.get, [function () ([o.name, o.description] for (o in options))]);
completion.setFunctionCompleter([options.getPref, options.safeSetPref, options.setPref, options.resetPref, options.invertPref],
[function () services.get("pref")