mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 21:03:33 +01:00
Move util.identity to the base module.
Most other functions of its ilk live there.
This commit is contained in:
@@ -105,7 +105,7 @@ var AbbrevHive = Class("AbbrevHive", Contexts.Hive, {
|
||||
},
|
||||
|
||||
/** @property {boolean} True if there are no abbreviations. */
|
||||
get empty() { return !values(this._store).find(util.identity); },
|
||||
get empty() { return !values(this._store).find(identity); },
|
||||
|
||||
/**
|
||||
* Adds a new abbreviation.
|
||||
@@ -251,7 +251,7 @@ var Abbreviations = Module("abbreviations", {
|
||||
let match = this._match.exec(text);
|
||||
if (match)
|
||||
return this.hives.map(h => h.get(mode, match[2] || match[4] || match[6]))
|
||||
.find(util.identity);
|
||||
.find(identity);
|
||||
return null;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user