@recogito/recogito-client-core
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "@recogito/recogito-client-core", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Core functions, classes and components for RecogitoJS", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -54,3 +54,4 @@ import WebAnnotation from '../WebAnnotation'; | ||
get bodies() { | ||
return this.underlying.body; | ||
return (Array.isArray(this.underlying.body)) ? | ||
this.underlying.body : [ this.underlying.body ]; | ||
} | ||
@@ -57,0 +58,0 @@ |
@@ -24,4 +24,4 @@ import { v4 as uuid } from 'uuid'; | ||
/** 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 }); | ||
} | ||
@@ -28,0 +28,0 @@ |
1216422
2772