Skip to content

Commit

Permalink
CC
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Jan 16, 2022
1 parent 280c591 commit 8e378f1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/annotation.js
Expand Up @@ -274,13 +274,8 @@ function drawElements(ctx, elements, caller) {

function drawSubElements(ctx, elements, caller) {
for (const el of elements) {
if (!isArray(el.elements)) {
continue;
}
for (const subElem of el.elements) {
if (subElem.options.drawTime === caller) {
subElem.draw(ctx);
}
if (isArray(el.elements)) {
drawElements(ctx, el.elements, caller);
}
}
}

0 comments on commit 8e378f1

Please sign in to comment.