1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 12:24:13 +01:00
This commit is contained in:
Kris Maglione
2014-02-18 22:45:48 -08:00
parent 8d6ea20cc4
commit 5ba16bda44
2 changed files with 7 additions and 4 deletions

7
common/bootstrap.js vendored
View File

@@ -221,10 +221,11 @@ function init() {
if (!manifest.categories) if (!manifest.categories)
manifest.categories = []; manifest.categories = [];
for (let [classID, { contract, path, category }] of Iterator(manifest.components || {})) { for (let [classID, { contract, path, categories }] of Iterator(manifest.components || {})) {
components[classID] = new FactoryProxy(getURI(path).spec, classID, contract); components[classID] = new FactoryProxy(getURI(path).spec, classID, contract);
if (category) if (categories)
manifest.categories.push([category[0], category[1], contract]); for (let [category, id] in Iterator(categories))
manifest.categories.push([category, id, contract]);
} }
for (let [category, id, value] of manifest.categories) { for (let [category, id, value] of manifest.categories) {

View File

@@ -26,7 +26,9 @@
"{16dc34f7-6d22-4aa4-a67f-2921fb5dcb69}": { "{16dc34f7-6d22-4aa4-a67f-2921fb5dcb69}": {
"path": "components/commandline-handler.js", "path": "components/commandline-handler.js",
"contract": "@mozilla.org/commandlinehandler/general-startup;1?type=dactyl", "contract": "@mozilla.org/commandlinehandler/general-startup;1?type=dactyl",
"category": ["command-line-handler", "m-dactyl"] "categories": {
"command-line-handler": "m-dactyl"
}
} }
}, },