mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Letters are cheap, lets use more of them
This commit is contained in:
parent
bde86f9d2e
commit
9dd5ccdd4e
1 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ function findDirectDescendantById(node, id) {
|
|||
}
|
||||
|
||||
// Search up the tree for a node that is in `node`'s lexical scope and pred returns node
|
||||
function findInLexicalScope(node, pred) {
|
||||
function findInLexicalScope(node, predicate) {
|
||||
let currentNode = node;
|
||||
while (currentNode.parent) {
|
||||
const parent = currentNode.parent;
|
||||
|
|
@ -159,7 +159,7 @@ function findInLexicalScope(node, pred) {
|
|||
break;
|
||||
}
|
||||
|
||||
const item = pred(child);
|
||||
const item = predicate(child);
|
||||
if (item) {
|
||||
return item;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue