Skip to content

Commit

Permalink
For consistency with WebAnnotation
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Mar 16, 2021
1 parent 285ba55 commit 4bd9c28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4bd9c28

Please sign in to comment.