1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 00:15:46 +01:00

Move util.identity to the base module.

Most other functions of its ilk live there.
This commit is contained in:
Doug Kearns
2015-06-11 03:10:16 +10:00
parent 6ca1cc3d08
commit 59613afb27
20 changed files with 49 additions and 46 deletions

View File

@@ -156,7 +156,7 @@ var Hive = Class("Hive", {
sheet.sites = filter;
}
else {
sheet = Sheet(name, styles._id++, filter.filter(util.identity), String(css), this, agent);
sheet = Sheet(name, styles._id++, filter.filter(identity), String(css), this, agent);
this.sheets.push(sheet);
}
@@ -414,7 +414,7 @@ var Styles = Module("Styles", {
context.generate = () => values(group.sites);
context.keys.text = util.identity;
context.keys.text = identity;
context.keys.description = function (site) {
return this.sheets.length + /*L*/" sheet" +
(this.sheets.length == 1 ? "" : "s") + ": " +