1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-26 22:55:45 +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

@@ -2552,7 +2552,7 @@ var Buffer = Module("Buffer", {
res = iter.find(filter.matcher(doc),
elem => ((elem.nodeValue || elem.textContent).trim() == line &&
DOM(elem).display != "none"))
|| iter.nth(filter.matcher(doc), util.identity, line - 1);
|| iter.nth(filter.matcher(doc), identity, line - 1);
if (res)
break;
}