From 4bd9c282e8e44635eb543a9383bf5f0153b6dbe6 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Tue, 16 Mar 2021 13:33:02 +0100 Subject: [PATCH] For consistency with WebAnnotation --- src/Selection.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Selection.js b/src/Selection.js index a485766..5c86ed0 100644 --- a/src/Selection.js +++ b/src/Selection.js @@ -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) {