Added isEqual method for consistency with WebAnnotation

This commit is contained in:
Rainer Simon 2020-04-12 10:30:15 +02:00
parent aaf1ba2bb6
commit b6f8a62a35
1 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,14 @@ export default class Selection {
} }
/** For consistency with WebAnnotation **/ /** For consistency with WebAnnotation **/
isEqual(other) {
if (!other) {
return false;
} else {
return this._stub === other._stub;
}
}
get bodies() { get bodies() {
return this._stub.body; return this._stub.body;
} }