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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user