clone config at init

This commit is contained in:
Preet Shihn
2020-06-05 22:58:59 -07:00
parent 3cb22bcdba
commit 54f62a4cba

View File

@@ -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();
}