Commit 5c74208e authored by dindigala's avatar dindigala
Browse files

refactor: adding a comment to function

parent b263c29c
Pipeline #223296 passed with stages
in 4 minutes and 48 seconds
...@@ -178,6 +178,8 @@ export default { ...@@ -178,6 +178,8 @@ export default {
} }
this.content = dom.documentElement.innerHTML; this.content = dom.documentElement.innerHTML;
// to improve performance, here we are trying to get candidates of annotation that are
// possibly be the annotation and try to match them with their respective annotations.
const displayedAnnotations = [ const displayedAnnotations = [
...dom.querySelectorAll('[data-annotation]'), ...dom.querySelectorAll('[data-annotation]'),
] ]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment