1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 03:17:58 +01:00
This commit is contained in:
Kris Maglione
2009-11-12 16:01:11 -05:00
2 changed files with 5 additions and 21 deletions

View File

@@ -66,6 +66,8 @@ const Liberator = Module("liberator", {
// without explicitly selecting a profile.
/** @property {string} The name of the current user profile. */
this.profileName = services.get("directory").get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, "");
config.features.push(Liberator.getPlatformFeature());
},
destroy: function () {
@@ -1730,8 +1732,6 @@ const Liberator = Module("liberator", {
};
},
load: function () {
config.features.push(Liberator.getPlatformFeature());
liberator.triggerObserver("load");
liberator.log("All modules loaded", 3);

View File

@@ -1117,26 +1117,10 @@ const Options = Module("options", {
else if (matches[3] == ".")
reference[0][reference[1]] += expr.toString();
}
else {
if (!reference[0]) {
if (reference[2] == "g")
reference[0] = liberator.globalVariables;
else
return; // for now
}
if (matches[3]) {
if (matches[3] == "+")
reference[0][reference[1]] += expr;
else if (matches[3] == "-")
reference[0][reference[1]] -= expr;
else if (matches[3] == ".")
reference[0][reference[1]] += expr.toString();
}
else
reference[0][reference[1]] = expr;
}
}
else
reference[0][reference[1]] = expr;
}
}
// 1 - name
else if (matches = args.match(/^\s*([\w:]+)\s*$/)) {