kazzkiq / CodeFlask

A micro code-editor for awesome web pages.
https://kazzkiq.github.io/CodeFlask/
MIT License
1.07k stars 121 forks source link

Destroy method #107

Open jaschaio opened 4 years ago

jaschaio commented 4 years ago

It looks like Codeflask is missing a Destroy method that removes Event Listeners, eventual created DOM Elements and enables us to use codeflask with reactive frameworks. The simple idea is that each CodeFlask instance should be destroyed whenever the parent component gets unmounted.

kazzkiq commented 4 years ago

That makes sense. Since many (if not most) new front-end projects use some king of reactive framework, it would be useful to have a method like that.

jaschaio commented 3 years ago

Any update? :)