Forum Academy Marketplace Showcase Pricing Features

Element Code Reset

Hi everyone,
If my plugin’s element code is generated in my update function, and then appended into my element code with the function instance.data.append() to show it in my app, is there a function i can trigger to reset my element code or to reset what i appended?

If anybody ever runs into this problem while developing an app.
Use instance.canvas.html("");
right before your
instance.canvas.append(yourElement);
it will clear your element code everytime before running the append() function!