1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-27 00:13:30 +01:00

Do away with services.(get|create), and move the prefs module to its own file.

This commit is contained in:
Kris Maglione
2010-12-01 21:57:51 -05:00
parent 0bf9cfb0bc
commit 5d51fd491a
26 changed files with 540 additions and 516 deletions

View File

@@ -172,7 +172,7 @@ const Config = Module("config", ConfigBase, {
this.showServicePane(true);
else {
let pane = document.getElementById(id);
let manager = services.get("displayPaneManager");
let manager = services.displayPaneManager;
let paneinfo = manager.getPaneInfo(pane._lastURL.stringValue);
if (!paneinfo)
@@ -272,12 +272,12 @@ const Config = Module("config", ConfigBase, {
"boolean", true,
{
setter: function (value) {
const ioService = services.get("io");
const ioService = services.io;
ioService.offline = !value;
prefs.set("browser.offline", ioService.offline);
return value;
},
getter: function () !services.get("io").offline
getter: function () !services.io.offline
});
},
services: function () {