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