devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB
https://snuggsi.com
MIT License
398 stars 17 forks source link

🐛 #bugfix Flush rendered dependent template nodes #43

Closed snuggs closed 7 years ago

snuggs commented 7 years ago

Fixes #41

There is a bug that after every template render the previous nodes are not flushed. Therefore appending instead of being idempotent and replacing. https://en.wikipedia.org/wiki/Idempotence