Added isEqual method for consistency with WebAnnotation
This commit is contained in:
parent
aaf1ba2bb6
commit
b6f8a62a35
|
@ -47,6 +47,14 @@ export default class Selection {
|
|||
}
|
||||
|
||||
/** For consistency with WebAnnotation **/
|
||||
isEqual(other) {
|
||||
if (!other) {
|
||||
return false;
|
||||
} else {
|
||||
return this._stub === other._stub;
|
||||
}
|
||||
}
|
||||
|
||||
get bodies() {
|
||||
return this._stub.body;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue