mirror of
https://github.com/slidevjs/rough-notation.git
synced 2026-01-30 08:47:49 +01:00
clone config at init
This commit is contained in:
@@ -18,7 +18,7 @@ class RoughAnnotationImpl implements RoughAnnotation {
|
|||||||
|
|
||||||
constructor(e: HTMLElement, config: RoughAnnotationConfig) {
|
constructor(e: HTMLElement, config: RoughAnnotationConfig) {
|
||||||
this._e = e;
|
this._e = e;
|
||||||
this._config = config;
|
this._config = JSON.parse(JSON.stringify(config));
|
||||||
this.attach();
|
this.attach();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user