From aaae5c32f29de62a90044ef4a6f9823f77d43ec6 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sun, 27 Dec 2020 17:51:19 +0100 Subject: [PATCH] Minor API tweak --- src/WebAnnotation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index fb07086..8928838 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -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 **/