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 9a16a36
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/annotation.js
Expand Up @@ -274,10 +274,7 @@ 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) {
for (const subElem of el.elements || []) {
if (subElem.options.drawTime === caller) {
subElem.draw(ctx);
}
Expand Down

0 comments on commit 9a16a36

Please sign in to comment.