For consistency with WebAnnotation

This commit is contained in:
Rainer Simon 2021-03-16 13:33:02 +01:00
parent 285ba55ea5
commit 4bd9c282e8
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ export default class Selection {
return this.underlying.target;
}
get targets() {
return (Array.isArray(this.underlying.target)) ?
this.underlying.target : [ this.underlying.target ];
}
/** For consistency with WebAnnotation **/
isEqual(other) {
if (!other) {