Minor API tweak

This commit is contained in:
Rainer Simon 2020-12-27 17:51:19 +01:00
parent 2482d37bd9
commit aaae5c32f2
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ export default class WebAnnotation {
}
/** Creates a copy of this annotation **/
clone = opt_props => {
return new WebAnnotation({ ...this.underlying, ...opt_props}, this.opts);
clone = (opt_props, opt_opts) => {
return new WebAnnotation({ ...this.underlying, ...opt_props}, { ...this.opts, ...opt_opts });
}
/** An equality check based on the underlying object **/