Dispose Js-Draw Editor #107
-
I'm experiencing performance issues in my browser when repeatedly replacing my js-draw editor instance. After several replacements, I've noticed a significant slowdown in browser performance. Is there a recommended way to completely dispose of a js-draw editor instance, ensuring that all associated event listeners, resources, and memory are released, before creating a new one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thank you :) |
Beta Was this translation helpful? Give feedback.
Hi,
I'm linking to two methods that, together, should remove and clean up the editor instance: editor.remove and/or toolbar.remove.