1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-16 12:23:31 +01:00

Fix some crap.

This commit is contained in:
Kris Maglione
2009-11-09 12:54:04 -05:00
parent 9bcbc473fa
commit 4658d7e211
2 changed files with 3 additions and 3 deletions

View File

@@ -478,7 +478,7 @@ const Mappings = Module("mappings", {
return util.Array.flatten( return util.Array.flatten(
[ [
[[name, map.description] for ([i, name] in Iterator(map.names))] [[name, map.description] for ([i, name] in Iterator(map.names))]
for ([i, map] in Iterator(this._user[mode].concat(this._main[mode]))) for ([i, map] in Iterator(mappings._user[mode].concat(mappings._main[mode])))
]); ]);
} }
]); ]);

View File

@@ -492,9 +492,9 @@ function Styles(name, store) {
*/ */
this.removeSheet = function (system, name, filter, css, index) { this.removeSheet = function (system, name, filter, css, index) {
let self = this; let self = this;
if (arguments.length == 0) { if (arguments.length == 1) {
var matches = [system]; var matches = [system];
system = sheet.system; system = matches[0].system;
} }
let sheets = system ? systemSheets : userSheets; let sheets = system ? systemSheets : userSheets;
let names = system ? systemNames : userNames; let names = system ? systemNames : userNames;