mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 07:24:12 +01:00
Get rid of most remaining comprehensions.
This commit is contained in:
@@ -196,7 +196,7 @@ var Hive = Class("Hive", {
|
||||
*/
|
||||
find: function find(name, filter, css, index) {
|
||||
// Grossly inefficient.
|
||||
let matches = [k for ([k, v] of iter(this.sheets))];
|
||||
let matches = Object.keys(this.sheets);
|
||||
if (index)
|
||||
matches = String(index).split(",").filter(i => i in this.sheets);
|
||||
if (name)
|
||||
|
||||
Reference in New Issue
Block a user